s_id
stringlengths
10
10
p_id
stringlengths
6
6
u_id
stringlengths
10
10
date
stringlengths
10
10
language
stringclasses
1 value
original_language
stringclasses
11 values
filename_ext
stringclasses
1 value
status
stringclasses
1 value
cpu_time
stringlengths
1
5
memory
stringlengths
1
7
code_size
stringlengths
1
6
code
stringlengths
1
539k
s323066970
p02552
u309562711
1600030952
Python
Python (3.8.2)
py
Runtime Error
25
9012
59
n=int(input().split()) if n==1: print(0) else: print(1)
s423031727
p02552
u056511037
1600030696
Python
Python (3.8.2)
py
Runtime Error
24
8992
24
princt(int(input()) ^ 1)
s972979517
p02552
u559272602
1600030484
Python
Python (3.8.2)
py
Runtime Error
26
9164
134
a, b, c, d = map(int, input().split()) x = a*c if a*c < a*d: x=a*d elif a*d < b*c: x=b*c elif b*c < b*d: x=b*d print(x)
s640070015
p02552
u371056862
1600030341
Python
Python (3.8.2)
py
Runtime Error
28
9012
22
print(1 - int(input())
s748732573
p02552
u120758605
1600030193
Python
Python (3.8.2)
py
Runtime Error
27
8884
77
x=int(input()) if(x==1): print("0") elif(x==0): print("1") else: pass
s522932756
p02552
u120758605
1600030013
Python
Python (3.8.2)
py
Runtime Error
23
8840
80
x=int(input()) if(x==1): print("0") elif(x==0): print("1") else: pass
s307445137
p02552
u239228953
1600029479
Python
Python (3.8.2)
py
Runtime Error
27
9072
27
n = int(input()) print(x^1)
s893838756
p02552
u698916859
1600029433
Python
Python (3.8.2)
py
Runtime Error
22
9152
193
import math def combinations_count(N, r): return math.factorial(N) // (math.factorial(N - r) * math.factorial(r)) # 整数の入力 N = int(input()) r = 2 print(combinations_count(N, r))
s223003988
p02552
u932225778
1600029351
Python
Python (3.8.2)
py
Runtime Error
27
8880
59
x == int(input()) if x = 1 : print(0) else : print(1)
s863555818
p02552
u852790844
1600029188
Python
Python (3.8.2)
py
Runtime Error
121
27076
925
import sys import numpy as np n = int(input()) a = np.array(input().split(), dtype=np.int64) b = np.array(input().split(), dtype=np.int64) ac = np.bincount(a, minlength=n+2) ab = np.bincount(b, minlength=n+2) if np.max(ac+ab) <= n: num, count = np.unique(b, return_counts=True) ans = [] for i in range(n): ...
s641567240
p02552
u582435914
1600028969
Python
Python (3.8.2)
py
Runtime Error
25
8832
188
#include <iostream> using namespace std; int main() { int x; cin>>x; if (x==0){ cout<<1<<endl; } else{ cout<<0<<endl; } return 0; }
s900447793
p02552
u582435914
1600028907
Python
Python (3.8.2)
py
Runtime Error
27
8920
231
#include <iostream> using namespace std; int main() { int x; cin>>x; if (x==0){ cout<<0<<endl; } if (x==1){ cout<<1<<endl; } else{ cout<<"error"<<endl; } return 0; }
s102102290
p02552
u418381221
1600028808
Python
PyPy3 (7.3.0)
py
Runtime Error
110
68688
496
N = int(input()) A = list(map(int,input().split())) B = list(map(int,input().split())) cnt = 0 step = 0 for i in range(N): if A[step] == B[i]: cnt += 1 else: step += 1 flag = 0 for j in range(100): C = B[cnt+j:]+B[:cnt+j] flag = 0 for i in range(N): if A[i] == C[i]: ...
s271726739
p02552
u819362132
1600028757
Python
Python (3.8.2)
py
Runtime Error
24
9148
359
a,b,c,d = map(int,input().split()) za=abs(a) zb=abs(b) zc=abs(c) zd=abs(d) if b>=0 and d>=0 : if a>0 or c>0: print(b*d) else: ans=max(a*c,b*d) print(ans) elif b<0 and d<0 : x=max(za,zb) y=max(zc,zd) print(x*y) else: if b>=0 and d<0 : x=max(za,zb) y=max(zc,zd) print(x*y) else: x=max...
s172869294
p02552
u186397299
1600028744
Python
Python (3.8.2)
py
Runtime Error
26
8924
933
A = input() B = A.split() a = int(B[0]) b = int(B[1]) c = int(B[2]) d = int(B[3]) if a <= 0 and b <= 0 and c <= 0 and d <= 0: print(a*c) elif a > 0 and b > 0 and c > 0 and d > 0: print(b*d) elif a > 0 and b > 0 and c<=0 and d<=0: print(a*d) elif a<=0 and b<=0 and c>0 and d>0: print(b*c) elif a<=0 and b...
s223044446
p02552
u412027664
1600028710
Python
Python (3.8.2)
py
Runtime Error
26
8764
65
x = int(input()) if x = 1: print("0") elif x = 0: print("1")
s516905796
p02552
u448566806
1600028545
Python
Python (3.8.2)
py
Runtime Error
26
8984
167
#include <stdio.h> int main(void){ int c; scanf("%d", &c); if(c == 1){ printf("0\n"); }else{ printf("1\n"); } return 0; }
s126204092
p02552
u152417130
1600028341
Python
Python (3.8.2)
py
Runtime Error
26
9308
1424
n = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) n += 5 sa = set(a) sb = set(b) count = [0] * n counta = [0] * n countb = [0] * n for v in a: count[v] += 1 counta[v] += 1 for v in b: count[v] += 1 countb[v] += 1 outA = dict() for v in a: outA[v] = [] impo...
s185026789
p02552
u659328126
1600028314
Python
Python (3.8.2)
py
Runtime Error
28
8944
50
inp = input() if inp == 1: print(0) else: print(1)
s890316516
p02552
u659328126
1600028283
Python
Python (3.8.2)
py
Runtime Error
27
8812
40
if input() == 1: print(0) else: print(1)
s185250488
p02552
u659328126
1600028212
Python
Python (3.8.2)
py
Runtime Error
30
8944
42
if input() == "1": print(0) else: print(1)
s640540999
p02552
u659328126
1600028163
Python
Python (3.8.2)
py
Runtime Error
23
8852
41
if(input()) == 0: print(0) else: print(1)
s891814131
p02552
u337040834
1600028142
Python
Python (3.8.2)
py
Runtime Error
27
9076
22
print(abs(1-input()))
s646177598
p02552
u659328126
1600028123
Python
Python (3.8.2)
py
Runtime Error
23
9036
41
if(input()) is 0: print(0) else: print(1)
s089703277
p02552
u843764230
1600028005
Python
Python (3.8.2)
py
Runtime Error
29
9052
173
a,b,c,d = map(int,input().split()) A = (a*c) B = (a*d) C = (b*c) D = (c*d) MAX = A if MAX < B: MAX = B elif MAX < C: MAX = C elif MAX < D: MAX = D print(MAX)
s360181706
p02552
u418381221
1600027906
Python
Python (3.8.2)
py
Runtime Error
29
9220
396
N = int(input()) A = list(map(int,input().split())) B = list(map(int,input().split())) cnt = 0 step = 0 for i in range(N): if A[step] == B[i]: cnt += 1 else: step += 1 C = B[cnt:]+B[:cnt] flag = 0 for i in range(N): if A[i] == C[i]: flag = 1 break if flag == 1: print...
s034933335
p02552
u038819082
1600027898
Python
Python (3.8.2)
py
Runtime Error
26
9116
60
a,b,c,d=map(int,input().split()) print(max(a*c,a*d,b*c,b*d))
s323368106
p02552
u784234016
1600027681
Python
Python (3.8.2)
py
Runtime Error
25
8948
33
if x=1 print(0) elif x=0 print(1)
s591361878
p02552
u784234016
1600027517
Python
Python (3.8.2)
py
Runtime Error
30
8960
15
if x=1 0 else 1
s258661535
p02552
u525589885
1600027443
Python
Python (3.8.2)
py
Runtime Error
27
8964
222
s = int(input()) l = 10**9+7 list_1 = [0, 1, 1, 1] list_2 = [0, 1, 2] for i in range(3, s): list_2.append((list_2[i-1] + list_1[i])%l) list_1.append(list_2[i-2]) if s = 1 or s = 2: print(0) else: print(list_1[s-1])
s255271871
p02552
u691711315
1600027288
Python
Python (3.8.2)
py
Runtime Error
29
8948
55
a = int(input()) if a = 0 : print(1) else: print(0)
s762379588
p02552
u669742612
1600027248
Python
Python (3.8.2)
py
Runtime Error
22
9120
233
if abs(a) <= abs(b) and abs(c) <= abs(d): print(b*d) elif abs(a) >= abs(b) and abs(c) <= abs(d): print(b*c) elif abs(a) <= abs(b) and abs(c) >= abs(d): print(a*d) elif abs(a) >= abs(b) and abs(c) >= abs(d): print(a*c)
s735980957
p02552
u698526962
1600027211
Python
Python (3.8.2)
py
Runtime Error
25
9020
56
x = int(input(x)) if x == 0: print(1) else: print(0)
s305978452
p02552
u698526962
1600027133
Python
Python (3.8.2)
py
Runtime Error
24
9016
56
x = int(input(x)) if x == 1: print(0) else: print(1)
s217454505
p02552
u669742612
1600027097
Python
Python (3.8.2)
py
Runtime Error
28
9060
232
a, b, c, d = map(int, input().split()) if abs(a) <= abs(b) and abs(c) <= abs(d): print(b*d) elif abs(a) > abs(b) and abs(c) <= abs(d): print(b*c) elif abs(a) <= abs(b) and abs(c) > abs(d): print(a*d) else: print(a*c)
s698357357
p02552
u239228953
1600027072
Python
Python (3.8.2)
py
Runtime Error
28
9132
26
x = int(input()) pint(x^1)
s256546568
p02552
u819495227
1600026995
Python
Python (3.8.2)
py
Runtime Error
23
9032
46
n = int(input()) print("1" if x == 0 else "0")
s553295608
p02552
u261427665
1600026986
Python
Python (3.8.2)
py
Runtime Error
25
9068
314
n = int(input()) xy = [map(int, input().split()) for _ in range(n)] x, y = [list(i) for i in zip(*xy)] a = 0 for i in range(0,n): for j in range(1,n-i): c = abs(x[i] - x[i + j]) + abs(y[i] - y[i + j]) print(c) if a >= c: a = a else: a = c print(a)
s490292078
p02552
u668525894
1600026820
Python
Python (3.8.2)
py
Runtime Error
26
8872
89
def f(x): if (x == 0): return 1 else if (x == 1): return 0 f(int(input())
s639404436
p02552
u119015607
1600026811
Python
Python (3.8.2)
py
Runtime Error
26
9200
587
a,b,c,d= map(int,input().split()) if a>=0 and b>=0 and c>=0 and d>=0: print(b*d) elif a>=0 and b>=0 and c<=0 and d<=0: print(a*d) elif a>=0 and b>=0 and c<=0 and d>=0: print(b*d) elif a<=0 and b>=0 and c>=0 and d>=0: print(b*d) elif a<=0 and b<=0 and c<=0 and d>=0: print(a*c) elif a<=0 and b<=0 and...
s555727750
p02552
u119015607
1600026776
Python
Python (3.8.2)
py
Runtime Error
23
9192
586
a,b,c,d= map(int,input().split()) if a>=0 and b>=0 and c>=0 and d>=0: print(b*d) elif a>=0 and b>=0 and c<=0 and d<=0: print(a*d) elif a>=0 and b>=0 and c<=0 and d>=0: print(b*d) elif a<=0 and b>=0 and c>=0 and d>=0: print(b*d) elif a<=0 and b<=0 and c<=0 and d>=0: print(a*c) elif a<=0 and b<=0 and...
s523039549
p02552
u152858291
1600026183
Python
Python (3.8.2)
py
Runtime Error
23
8628
193
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <set> using namespace std; int main() { int x; cin >> x; x ^= 1; cout << x << endl; return 0; }
s852705130
p02552
u116763463
1600026170
Python
Python (3.8.2)
py
Runtime Error
24
9000
580
#include<bits/stdc++.h> using namespace std; #define int long long int mod = 1000000007; // #include "debug.cpp" int dp[1000010][4]; int32_t main(){ int n; cin >> n; if(n == 1){ cout << "0\n"; return 0; } dp[2][0] = 64; dp[2][1] = 17; dp[2][2] = 17; dp[2][3] = 2; for(int i=3; i<=n; i++){ dp[i][0]...
s912893971
p02552
u152858291
1600026149
Python
Python (3.8.2)
py
Runtime Error
26
8940
187
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <set> using namespace std; int main() { int x; cin >> x; cout << (x^1) << endl; return 0; }
s981206564
p02552
u152858291
1600026090
Python
Python (3.8.2)
py
Runtime Error
26
8772
185
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <set> using namespace std; int main() { int x; cin >> x; cout << x^1 << endl; return 0; }
s597781786
p02552
u963963908
1600025978
Python
Python (3.8.2)
py
Runtime Error
24
9124
63
a,b,c,d = map(int,input().split()) print(max(a*c,a*d,b*c,b*d))
s923306345
p02552
u885722498
1600025913
Python
Python (3.8.2)
py
Runtime Error
25
9224
253
# coding: utf8 # 日本語を入力できるようにするために上記一文が必要 import math N = int(input()) if N == 1: print(0) elif N == 2: print(1) else: ans = math.factorial(N)*(10**(N -2)) print(ans%(10**9+7))
s137418200
p02552
u847033024
1600025893
Python
Python (3.8.2)
py
Runtime Error
28
9112
178
a, b, c, d = map(int, input().split()) if b * d >= 0: print(b * d) else: z = [] for x in range(a, b + 1): for y in range(c, d + 1): z.append(x * y) print(max(z))
s193274845
p02552
u135642682
1600025889
Python
Python (3.8.2)
py
Runtime Error
23
9208
255
a,b,c,d = map(int, input().split()) if a >=0: if c > 0: print(b * d) elif d < 0: print(a * d) else: print(b*d) else: if c > 0: print(b * c) elif d < 0: print(a * c) else: print(b * c)
s811770987
p02552
u135642682
1600025844
Python
Python (3.8.2)
py
Runtime Error
28
9184
255
a,b,c,d = map(int, input().split()) if a >=0: if c > 0: print(b * d) elif d < 0: print(a * d) else: print(b*d) else: if c > 0: print(b * c) elif d < 0: print(a * c) else: print(b * c)
s526087327
p02552
u114868394
1600025659
Python
Python (3.8.2)
py
Runtime Error
24
9124
198
a,b,c,d=list(map(int,input().split())) if a>=0 and c>=0: one=b two=d elif a<0 and c<0: one=a two=c elif a>=0 and c<0: one=a two=d else: one=b two=c print(one*two)
s421863557
p02552
u786150969
1600025641
Python
Python (3.8.2)
py
Runtime Error
26
9076
66
x = input(x) if x == 0: print('1') if x == 1: print('0')
s726699782
p02552
u220545090
1600025500
Python
Python (3.8.2)
py
Runtime Error
26
8944
22
x = input() print(x^1)
s347372740
p02552
u367696065
1600025427
Python
Python (3.8.2)
py
Runtime Error
23
8876
795
#define _USE_MATH_DEFINES #include <bits/stdc++.h> using namespace std; #define all(x) (x).begin(), (x).end() #define dbl(k, x) fixed << setprecision(k) << (x) template <typename _T> inline void _DBG(const char *s, _T x) { cerr << s << " = " << x << "\n"; } template <typename _T, typename... args> void _DBG(const c...
s797411251
p02552
u005977014
1600025379
Python
Python (3.8.2)
py
Runtime Error
22
9152
387
a,b,c,d=map(int,input().split()) if a>=0 and b>=0 and c>=0 and d>=0: print(b*d) elif a<=0 and b>=0 and c>=0 and d>=0: print(b*d) elif a<=0 and b<=0 and c>=0 and d>=0: print(b*c) elif a<=0 and b>=0 and c<=0 and d>=0: print(b*d) elif a<=0 and b<=0 and c<=0 and d>=0: print(a*c) elif a<=0 and b>=0 and c<=0 and d<...
s134255056
p02552
u683027991
1600025321
Python
Python (3.8.2)
py
Runtime Error
28
9192
214
a,b,c,d = map(int,input().split()) if a*c > b*d: print(a*c) elif b > 0 and d > 0: print(b*d) elif a < 0 and c < 0: print(a*c) else: x = min(abs(a),abs(b)) y = min(abs(c),abs(d)) print(-x*y)
s831334935
p02552
u768752804
1600025303
Python
Python (3.8.2)
py
Runtime Error
22
9104
200
a,b,c,d = map(int, input().split()) x = a y = c max = x * y if b < 0: print(max) else: for x in range(a,b + 1): for y in range(c,d + 1): if x * y > max: max = x * y print(max)
s351661526
p02552
u220545090
1600025297
Python
Python (3.8.2)
py
Runtime Error
22
9080
10
print(x^1)
s028634566
p02552
u271123940
1600025198
Python
Python (3.8.2)
py
Runtime Error
26
9004
89
def in(x): if x == 0: return 1 if x == 1: return 0 x = int(input()) print(in(x))
s844929046
p02552
u302084097
1600025124
Python
Python (3.8.2)
py
Runtime Error
26
8940
54
x=int(input()) if x=1: print(0) else: print(1)
s395257371
p02552
u243078991
1600025080
Python
Python (3.8.2)
py
Runtime Error
27
8860
58
x = int(input()) if x = 0: print("1") else: print("0")
s399649681
p02552
u988466483
1600025038
Python
Python (3.8.2)
py
Runtime Error
28
9008
61
x = int(input()) if x==0: print("1") else: print("0")
s943785476
p02552
u229621546
1600024984
Python
Python (3.8.2)
py
Runtime Error
24
8932
48
if 1 == int(input()): print(0) else print(1)
s811793770
p02552
u873605671
1600024925
Python
Python (3.8.2)
py
Runtime Error
26
9000
48
x = input() if x: print 0 else: print 1
s596354299
p02552
u407582092
1600024846
Python
Python (3.8.2)
py
Runtime Error
29
9000
115
class Solution: def solve(self, x): if x == 0: return 1 elif x == 1: return 0
s797849829
p02552
u736990852
1600024832
Python
Python (3.8.2)
py
Runtime Error
30
8948
82
x=ipput(:) if x>=0 and x<=1: if x=1: print('0') elif x=0: print('1')
s510715620
p02552
u364090041
1600024819
Python
Python (3.8.2)
py
Runtime Error
28
8940
21
a = input() print(!a)
s931983441
p02552
u873605671
1600024729
Python
Python (3.8.2)
py
Runtime Error
24
8936
35
if x: print 0 else: print 1
s195527070
p02552
u635759013
1600024726
Python
Python (3.8.2)
py
Runtime Error
24
9156
86
a,b,c,d = [int(x) for x in input().split()] nums = [a*c,a*d,b*c,b*d] print(max(nums))
s357505642
p02552
u273914730
1600024653
Python
Python (3.8.2)
py
Runtime Error
24
9008
55
x=input() if x>0.5: print(0) elif x<0.5: print(1)
s995080175
p02552
u873605671
1600024615
Python
Python (3.8.2)
py
Runtime Error
25
9040
37
if x: return 0 else: return 1
s747561023
p02552
u056118261
1600024571
Python
Python (3.8.2)
py
Runtime Error
27
9004
61
x = int(input()) if x==1: print(0) else if x==0: print(1)
s992802400
p02552
u444766154
1600024472
Python
Python (3.8.2)
py
Runtime Error
26
9008
60
x = int(input(x)) if x == 0: print(1) else: print(0)
s592761026
p02552
u273914730
1600024458
Python
Python (3.8.2)
py
Runtime Error
23
9076
59
x=int(input()) if s==0: print( 1) elif s==1: print( 0)
s308693300
p02552
u587429593
1600024450
Python
Python (3.8.2)
py
Runtime Error
24
8872
55
x = int(input()) if x = 0: print(1) else: print(0)
s805759271
p02552
u634494967
1600024423
Python
Python (3.8.2)
py
Runtime Error
20
9084
55
n = input() if n > 0: print(0) elif n < 1: print(1)
s849502097
p02552
u273914730
1600024407
Python
Python (3.8.2)
py
Runtime Error
26
8916
57
x=int(input()) if s==0: return 1 elif s==1: return 0
s583744544
p02552
u718765445
1600024399
Python
Python (3.8.2)
py
Runtime Error
26
8872
53
if (int(input()) ==0: print(1) else: print(0)
s732181295
p02552
u587429593
1600024336
Python
Python (3.8.2)
py
Runtime Error
26
8940
59
x = int(input()) if x = 0: print("1") else: print("0")
s708761837
p02552
u273914730
1600024320
Python
Python (3.8.2)
py
Runtime Error
30
9080
66
x=int(input()) s=input() if s==0: return 1 elif s==1: return 0
s733485679
p02552
u273914730
1600024296
Python
Python (3.8.2)
py
Runtime Error
21
9012
57
x=int(input()) if x==0: return 1 elif x==1: return 0
s928935163
p02552
u444766154
1600024275
Python
Python (3.8.2)
py
Runtime Error
20
8892
39
if x == 0: print(1) else: print(0)
s290561134
p02552
u273914730
1600024201
Python
Python (3.8.2)
py
Runtime Error
28
9016
44
if x==0: print (1) elif x==1: print(0)
s991052925
p02552
u176165272
1600024180
Python
Python (3.8.2)
py
Runtime Error
22
9020
60
x = input() if X == "1": print("0") else: print("1")
s556711997
p02552
u273914730
1600024162
Python
Python (3.8.2)
py
Runtime Error
25
8972
53
x=int(a) if a==0: print (1) elif a==1: print(0)
s211552579
p02552
u444766154
1600024140
Python
Python (3.8.2)
py
Runtime Error
21
8936
38
if x = 0: print(1) else: print(0)
s422544688
p02552
u920463220
1600024101
Python
Python (3.8.2)
py
Runtime Error
24
9008
20
print(1-int(input())
s770215384
p02552
u024568043
1600024092
Python
Python (3.8.2)
py
Runtime Error
23
8876
27
print(int(not int(input()))
s131221004
p02552
u768752804
1600024084
Python
Python (3.8.2)
py
Runtime Error
26
9100
160
a,b,c,d = map(int, input().split()) x = a y = c max = x * y for x in range(a,b + 1): for y in range(c,d + 1): if x * y > max: max = x * y print(max)
s261152575
p02552
u244656600
1600024076
Python
Python (3.8.2)
py
Runtime Error
28
8872
46
x= input() if(x==0) print(1) else print(0)
s559488259
p02552
u476628920
1600024061
Python
Python (3.8.2)
py
Runtime Error
24
9088
64
a,b,c,d = map(int,input().split()) print(max([a*b,b*c,a*d,b*d]))
s159910410
p02552
u691710466
1600024041
Python
Python (3.8.2)
py
Runtime Error
28
9028
41
if x == 0: x = 1 else: x = 0 print(x)
s526097965
p02552
u273914730
1600024017
Python
Python (3.8.2)
py
Runtime Error
27
9072
50
x=int(a) if a==0: return 1 elif a==1: return 0
s814549443
p02552
u239228953
1600024013
Python
Python (3.8.2)
py
Runtime Error
24
8960
52
x = int(input()) if x==1: print(0) else: print(1
s147163324
p02552
u308914480
1600023922
Python
Python (3.8.2)
py
Runtime Error
21
9000
54
x=int(input()) if x=0: print("1") else: print("0")
s385889534
p02552
u280325247
1600023899
Python
Python (3.8.2)
py
Runtime Error
23
9152
79
a, b, c, d = map(int, input().split()) print(max(a * c, b * d, a * d, b * c))
s449242174
p02552
u316152477
1600023895
Python
Python (3.8.2)
py
Runtime Error
21
8996
57
x = import() if x == 0: print(1) else: print(0)
s776318253
p02552
u308914480
1600023888
Python
Python (3.8.2)
py
Runtime Error
21
8868
45
x=input() if x=0: print(1) else: print(0)
s651396167
p02552
u691710466
1600023865
Python
Python (3.8.2)
py
Runtime Error
32
8952
39
if x = 0: x = 1 else x = 0 return x
s663662934
p02552
u291266927
1600023860
Python
Python (3.8.2)
py
Runtime Error
25
8952
76
x=int(input()) if x==0: print(1) elif x==1: print(0) else: break