s_id
string
p_id
string
u_id
string
date
string
language
string
original_language
string
filename_ext
string
status
string
cpu_time
string
memory
string
code_size
string
code
string
error
string
stdout
string
s071062834
p02550
u327466606
1600544143
Python
Python (3.8.2)
py
Runtime Error
47
13844
523
def solve(N,X,M): memo = [-1]*(M+3) acc = [0]*(M+4) x = X for i in range(M): if memo[x] >= 0: break acc[i+1] = acc[i]+x memo[x] = i x = (x*x)%M end = i start = memo[x] cycle = end - start if N < end: return acc[N] cycle_sum = ...
Traceback (most recent call last): File "/tmp/tmpbb9mgqfh/tmpp6bvoyde.py", line 32, in <module> N,X,M = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s229888842
p02550
u678505520
1600544140
Python
Python (3.8.2)
py
Runtime Error
90
12312
479
n, x, m = map(int,input().split()) rem = [0] * m chk = [0] * (m + 1) rem[0] = x for i in range(1,m): rem[i] = (rem[i - 1] ** 2) % m chk[rem[i - 1] ** 2 % m] += 1 if chk[rem[i - 1] ** 2 % m] > 1: temp1 = rem[i - 1] ** 2 % m temp2 = i break for i in range(m): if rem[i] == temp1: temp3 = i br...
Traceback (most recent call last): File "/tmp/tmp09jpzr9o/tmpmpyaro0q.py", line 1, in <module> n, x, m = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s878889538
p02550
u328858746
1600544019
Python
PyPy3 (7.3.0)
py
Runtime Error
476
80336
470
N,X,M = map(int,input().split()) A = [0]*M S = 0 r = X A[r-1] = 1 d = 0 for i in range(1,M): r = (r*r) % M if A[r-1] == 0: A[r-1] = i+1 else: I = A[r-1] j = i+1 d = j-I break r = X for i in range(I): S += r r = (r*r) % M if d != 0: t,u = (N-I)//d,(N-I)%d ...
Traceback (most recent call last): File "/tmp/tmpdny7860r/tmpgmvzjrjs.py", line 1, in <module> N,X,M = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s298294593
p02550
u035603241
1600543897
Python
PyPy3 (7.3.0)
py
Runtime Error
142
76720
4468
from math import inf, log2 class SegmentTree: def __init__(self, array, func=max): self.n = len(array) self.size = 2**(int(log2(self.n-1))+1) if self.n != 1 else 1 self.func = func self.default = 0 if self.func != min else inf self.data = [self.default] * (2 * self.size) ...
Traceback (most recent call last): File "/tmp/tmpx2csu0mr/tmpmil6inu0.py", line 133, in <module> n, x, m = map(int, input().split()) ^^^^^^^ ValueError: not enough values to unpack (expected 3, got 0)
s311853561
p02550
u327466606
1600543825
Python
PyPy3 (7.3.0)
py
Runtime Error
133
68436
540
def solve(N,X,M): memo = [-1]*M acc = [0]*(M+1) x = X%M for i in range(M): if memo[x] >= 0: break acc[i+1] = acc[i]+x memo[x] = i x = (x*x)%M end = i start = memo[x] cycle = end - start if N < end: return acc[N]+(X - X%M) cycl...
Traceback (most recent call last): File "/tmp/tmp5bl_lw_q/tmp63ygcas9.py", line 31, in <module> N,X,M = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s889593665
p02550
u168416324
1600543531
Python
PyPy3 (7.3.0)
py
Runtime Error
797
70148
254
n,x,m=map(int,input().split()) yj=[x] for i in range(n): an=(yj[i]**2)%m if an in yj: lps=yj.index(an) break yj.append(an) blp=yj[:lps] lp=yj[lps:] ans=sum(blp)+sum(lp)*((n-len(blp))//len(lp))+sum(lp[:(n-len(blp))%len(lp)]) print(ans)
Traceback (most recent call last): File "/tmp/tmplrkwvfpa/tmp7nl82ztb.py", line 1, in <module> n,x,m=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s320075643
p02550
u509368316
1600543277
Python
Python (3.8.2)
py
Runtime Error
59
13800
274
N,X,M=map(int,input().split()) l=[X] p=[-1]*M p[X]=0 for i in range(N-1): x=(l[-1]**2)%M if p[x]>=0: break l.append(x) p[x]=i+1 if i==N-2: print(sum(l)) else: x=p[x] y=len(l)-x print(sum(l[:x])+(N-x)//y*sum(l[x:])+sum(l[x:x+(N-x)%y]))
Traceback (most recent call last): File "/tmp/tmpxazwc5d1/tmptioe8saz.py", line 1, in <module> N,X,M=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s772495136
p02550
u221272125
1600542940
Python
Python (3.8.2)
py
Runtime Error
28
9224
382
N,X,M = map(int,input().split()) R = [X] m = min(X,M) for i in range(m): r = R[-1] r = r**2%M if r in R: break R.append(r) for i in range(len(R)): if r == R[i]: break a = 0 b = sum(R) for j in range(i): a += R[j] b -= R[j] n = len(R) - i t = N - i p = t // n q = t % n c = 0 f...
Traceback (most recent call last): File "/tmp/tmputxe1sfd/tmptga4nuus.py", line 1, in <module> N,X,M = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s664668303
p02550
u221272125
1600542847
Python
Python (3.8.2)
py
Runtime Error
28
9228
382
N,X,M = map(int,input().split()) R = [X] m = min(X,M) for i in range(m): r = R[-1] r = r**2%M if r in R: break R.append(r) for i in range(len(R)): if r == R[i]: break a = 0 b = sum(R) for j in range(i): a += R[j] b -= R[j] n = len(R) - i t = N - i p = t // n q = t % n c = 0 f...
Traceback (most recent call last): File "/tmp/tmp03vas2g5/tmpmwp5x69h.py", line 1, in <module> N,X,M = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s120667969
p02550
u205116974
1600542771
Python
Python (3.8.2)
py
Runtime Error
485
47448
136
n,x,m = map(int,input().split()) l = [0]*(n+1) l[0] = x%m s = l[0] for i in range(1,n): l[i] = (l[i-1]**2)%m s += l[i] print(s)
Traceback (most recent call last): File "/tmp/tmpa1a7cwoi/tmpnfdirwf1.py", line 1, in <module> n,x,m = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s632569059
p02551
u251897181
1600732181
Python
Python (3.8.2)
py
Runtime Error
2209
115212
1130
import numpy BLACK = 1 WHITE = 2 NONE = 0 def getNewMatrix(n, position, currentAxisMatrix, verticalAxisMatrix): indexes = numpy.where(verticalAxisMatrix[1] >= position)[0] if(indexes.size == 0): return numpy.append(currentAxisMatrix, [[position], [n - 2]], axis=1) else: return numpy.append(...
Traceback (most recent call last): File "/tmp/tmpujz_3k1x/tmpsonndh_q.py", line 30, in <module> main() File "/tmp/tmpujz_3k1x/tmpsonndh_q.py", line 14, in main n, q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s384565808
p02551
u251897181
1600722211
Python
Python (3.8.2)
py
Runtime Error
511
290728
1128
import numpy BLACK = 1 WHITE = 2 NONE = 0 def query1(x, stonesMatrix): line = stonesMatrix[0:, x - 1] whiteIndex = numpy.where(line == WHITE)[0][0] stonesMatrix[0:whiteIndex, x - 1] = WHITE def query2(x, stonesMatrix): line = stonesMatrix[x - 1] whiteIndex = numpy.where(line == WHITE)[0][0] st...
Traceback (most recent call last): File "/tmp/tmp9gnobbnw/tmpwg1455pb.py", line 41, in <module> main() File "/tmp/tmp9gnobbnw/tmpwg1455pb.py", line 31, in main n, q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s467370549
p02551
u251897181
1600720773
Python
Python (3.8.2)
py
Runtime Error
321
290216
1120
import numpy BLACK = 1 WHITE = 2 NONE = 0 def query1(x, stonesMatrix): line = stonesMatrix[x - 1] whiteIndex = numpy.where(line == WHITE)[0][0] stonesMatrix[x, 0:whiteIndex] = WHITE def query2(x, stonesMatrix): line = stonesMatrix[0:][x - 1] whiteIndex = numpy.where(line == WHITE)[0][0] stones...
Traceback (most recent call last): File "/tmp/tmp4hngeq8h/tmp_1qs7nft.py", line 41, in <module> main() File "/tmp/tmp4hngeq8h/tmp_1qs7nft.py", line 31, in main n, q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s637500625
p02551
u251897181
1600720422
Python
Python (3.8.2)
py
Runtime Error
1369
1209612
1101
import numpy BLACK = 1 WHITE = 2 NONE = 0 def query1(x, stonesMatrix): line = stonesMatrix[x - 1] whiteIndex = numpy.where(line == WHITE)[0][0] stonesMatrix[x, 0:whiteIndex] = WHITE def query2(x, stonesMatrix): line = stonesMatrix[0:][x - 1] whiteIndex = numpy.where(line == WHITE)[0][0] stones...
Traceback (most recent call last): File "/tmp/tmplx764s3s/tmp_436gefm.py", line 41, in <module> main() File "/tmp/tmplx764s3s/tmp_436gefm.py", line 31, in main n, q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s251132424
p02551
u251897181
1600712381
Python
Python (3.8.2)
py
Runtime Error
1116
1215472
1054
import numpy BLACK = 1 WHITE = 2 NONE = 0 def query1(x, stonesMatrix): line = stonesMatrix[x - 1] whiteIndex = numpy.where(line == WHITE)[0][0] stonesMatrix[x, 0:whiteIndex] = WHITE def query2(x, stonesMatrix): line = stonesMatrix[0:][x - 1] whiteIndex = numpy.where(line == WHITE)[0][0] stones...
Traceback (most recent call last): File "/tmp/tmpmjtbewaq/tmp546x8z1q.py", line 39, in <module> main() File "/tmp/tmpmjtbewaq/tmp546x8z1q.py", line 29, in main n, q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s040106240
p02551
u793981991
1600712302
Python
PyPy2 (7.3.0)
py
Runtime Error
323
85172
495
input = io.BytesIO(os.read(0, os.fstat(0).st_size)).readline n, q = list(map(int, input().split())) count = (n - 2) ** 2 c = [n] * n r = [n] * n for _ in range(q): m,q = list(map(int, input().split())) if m == 1: pos = r[q-1] c[:pos] = [min(q, v) for v in c[:pos]] r[q-1] = 1 if q not in [1,n]: ...
Traceback (most recent call last): File "/tmp/tmpyw0bp_50/tmpile2e3rb.py", line 1, in <module> input = io.BytesIO(os.read(0, os.fstat(0).st_size)).readline ^^ NameError: name 'io' is not defined. Did you mean: 'id'?
s872801488
p02551
u251897181
1600712190
Python
Python (3.8.2)
py
Runtime Error
1114
1215440
1054
import numpy BLACK = 1 WHITE = 2 NONE = 0 def query1(x, stonesMatrix): line = stonesMatrix[x - 1] whiteIndex = numpy.where(line == WHITE)[0][0] stonesMatrix[x, 0:whiteIndex] = WHITE def query2(x, stonesMatrix): line = stonesMatrix[0:][x - 1] whiteIndex = numpy.where(line == WHITE)[0][0] stones...
Traceback (most recent call last): File "/tmp/tmpusoc4kxm/tmp2fewvl7p.py", line 39, in <module> main() File "/tmp/tmpusoc4kxm/tmp2fewvl7p.py", line 29, in main n, q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s990379276
p02551
u326609687
1600620419
Python
Python (3.8.2)
py
Runtime Error
394
91812
1207
from numba.types import i8 ni8 = np.int64 @njit((i8, i8[:,::-1]), cache=True) def solve(n, qr): col = np.full(n - 1, n - 2) col[0] = 0 col_min = n - 1 prev_col_min = n - 1 row = np.full(n - 1, n - 2) row[0] = 0 row_min = n - 1 prev_row_min = n - 1 white = 0 for i in range(qr.sha...
Traceback (most recent call last): File "/tmp/tmp2vqz5xhw/tmpcm8so4hk.py", line 2, in <module> ni8 = np.int64 ^^ NameError: name 'np' is not defined
s401285740
p02551
u326609687
1600620368
Python
Python (3.8.2)
py
Runtime Error
368
91760
1207
from numba.types import i8 ni8 = np.int64 @njit((i8, i8[:,::-1]), cache=True) def solve(n, qr): col = np.full(n - 1, n - 2) col[0] = 0 col_min = n - 1 prev_col_min = n - 1 row = np.full(n - 1, n - 2) row[0] = 0 row_min = n - 1 prev_row_min = n - 1 white = 0 for i in range(qr.sha...
Traceback (most recent call last): File "/tmp/tmpc9logrvs/tmp7_5vki9k.py", line 2, in <module> ni8 = np.int64 ^^ NameError: name 'np' is not defined
s209836388
p02551
u326609687
1600614268
Python
Python (3.8.2)
py
Runtime Error
115
27164
961
import numpy as np ni8 = np.int64 def solve(n, qr): col = np.full(n - 1, n - 2) col[0] = 0 col_min = n - 1 row = np.full(n - 1, n - 2) row[0] = 0 row_min = n - 1 white = 0 for i in range(qr.shape[0]): j = qr[i, 1] - 1 if qr[i, 0] == 1: u = col[j] ...
Traceback (most recent call last): File "/tmp/tmpn3d0uigd/tmp1ejh99jb.py", line 40, in <module> main() File "/tmp/tmpn3d0uigd/tmp1ejh99jb.py", line 34, in main f = open('f3.txt') ^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'f3.txt'
s545817781
p02551
u983853152
1600614143
Python
PyPy3 (7.3.0)
py
Runtime Error
279
99888
660
N,Q = map(int, input().split()) ANS = (N-2)**2 R,C=N,N RLEN=[] CLEN=[] for i in range(Q): RC,num = map(int, input().split()) if RC==1: if R>num: for j in range(R-num-2): RLEN.append(C) ANS-=C-2 R=num else: if len(RLEN)>0: ...
Traceback (most recent call last): File "/tmp/tmpo8pfr86n/tmpps5nept6.py", line 1, in <module> N,Q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s523852047
p02551
u983853152
1600614023
Python
PyPy3 (7.3.0)
py
Runtime Error
265
99988
660
N,Q = map(int, input().split()) ANS = (N-2)**2 R,C=N,N RLEN=[] CLEN=[] for i in range(Q): RC,num = map(int, input().split()) if RC==1: if R>num: for j in range(R-num-1): RLEN.append(C) ANS-=C-2 R=num else: if len(RLEN)>0: ...
Traceback (most recent call last): File "/tmp/tmp6dvs4jjk/tmpbxqjkgef.py", line 1, in <module> N,Q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s434974421
p02551
u994521204
1600556843
Python
PyPy3 (7.3.0)
py
Runtime Error
87
74560
2376
import sys input = sys.stdin.buffer.readline n, q = map(int, input().split()) class SegmentTree: ele = 10 ** 10 func = min # SEG木は1-index # Aに関しては0-index def __init__(self, n): # Aは0-idx self.n = n self.num = 2 ** ((self.n - 1).bit_length()) self.SEG = [self.ele] * (2 ...
File "/tmp/tmpa4097rvt/tmpfyz3_8tr.py", line 1 import sys IndentationError: unexpected indent
s675411018
p02551
u994521204
1600554104
Python
PyPy3 (7.3.0)
py
Runtime Error
356
91764
2375
import sys input = sys.stdin.buffer.readline n, q = map(int, input().split()) class SegmentTree: ele = 10 ** 10 func = min # SEG木は1-index # Aに関しては0-index def __init__(self, n): # Aは0-idx self.n = n self.num = 2 ** ((self.n - 1).bit_length()) self.SEG = [self.ele] * (2 *...
Traceback (most recent call last): File "/tmp/tmpg7g8pmgu/tmpohicfn1v.py", line 5, in <module> n, q = map(int, input().split()) ^^^^ ValueError: not enough values to unpack (expected 2, got 0)
s155930630
p02551
u627600101
1600552837
Python
PyPy3 (7.3.0)
py
Runtime Error
525
92320
2445
#####segfunc##### def segfunc(x, y): return min(x, y) ################# #####ide_ele##### ide_ele = 10**9 ################# class SegTree: """ init(init_val, ide_ele): 配列init_valで初期化 O(N) update(k, x): k番目の値をxに更新 O(logN) query(l, r): 区間[l, r)をsegfuncしたものを返す O(logN) """ def __init__(self,...
Traceback (most recent call last): File "/tmp/tmpgt_ivujr/tmpnlwikaho.py", line 70, in <module> N, Q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s672660561
p02551
u627600101
1600552687
Python
PyPy3 (7.3.0)
py
Runtime Error
467
92352
2409
#####segfunc##### def segfunc(x, y): return min(x, y) ################# #####ide_ele##### ide_ele = 10**9 ################# class SegTree: """ init(init_val, ide_ele): 配列init_valで初期化 O(N) update(k, x): k番目の値をxに更新 O(logN) query(l, r): 区間[l, r)をsegfuncしたものを返す O(logN) """ def __init__(self,...
Traceback (most recent call last): File "/tmp/tmpu6tvkmal/tmpmn4sysng.py", line 70, in <module> N, Q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s717030756
p02551
u627600101
1600552309
Python
PyPy3 (7.3.0)
py
Runtime Error
452
116980
2533
#####segfunc##### def segfunc(x, y): return min(x, y) ################# #####ide_ele##### ide_ele = float('inf') ################# class SegTree: """ init(init_val, ide_ele): 配列init_valで初期化 O(N) update(k, x): k番目の値をxに更新 O(logN) query(l, r): 区間[l, r)をsegfuncしたものを返す O(logN) """ def __init_...
Traceback (most recent call last): File "/tmp/tmp02sd7rar/tmphnyc5ewx.py", line 70, in <module> N, Q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s776294443
p02551
u562016607
1600548835
Python
PyPy3 (7.3.0)
py
Runtime Error
369
135464
2109
class segtree(): def segfunc(x,y): return min(x,y) #####単位元###### ide_ele = -1 n=1 init_val=[0]*n #num:n以上の最小の2のべき乗 num =2**(n-1).bit_length() seg=[ide_ele]*2*num def __init__(self,INIT_VAL,SEGFUNC,IDE_ELE): self.ide_ele=IDE_ELE self.init_val=[i for i in ...
Traceback (most recent call last): File "/tmp/tmped4dz5if/tmp7g9hvvaj.py", line 54, in <module> N,Q=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s307719339
p02551
u643223021
1600548066
Python
Python (3.8.2)
py
Runtime Error
2212
159076
730
import numpy as np n, q = map(int, input().split()) g = np.zeros((n, n), dtype=np.uint8) query = [] count = 0 g[1:n-1, 1:n-1] = 2 g[:n, n-1] = 1 g[n-1, :n] = 1 for _ in range(q): query = list(map(int, input().split())) if query[0] == 1: g[0, query[1]] = 1 for i in range(1, n-1): i...
Traceback (most recent call last): File "/tmp/tmpkjctoequ/tmpul8h3aaf.py", line 3, in <module> n, q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s650470064
p02551
u678167152
1600548006
Python
PyPy3 (7.3.0)
py
Runtime Error
762
100972
1456
# N: 処理する区間の長さ N, Q = map(int, input().split()) INF = 2**31 N-=1 LV = (N-1).bit_length() N0 = 2**LV data1 = [INF]*(2*N0) data2 = [INF]*(2*N0) lazy1 = [None]*(2*N0) lazy2 = [None]*(2*N0) # 伝搬対象の区間を求める def gindex(l, r): L = (l + N0) >> 1; R = (r + N0) >> 1 lc = 0 if l & 1 else (L & -L).bit_length() rc = 0 i...
Traceback (most recent call last): File "/tmp/tmp_owggmkl/tmpq31cobrk.py", line 2, in <module> N, Q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s425942284
p02551
u511965386
1600547995
Python
PyPy3 (7.3.0)
py
Runtime Error
350
112172
1013
N, Q = map(int, input().split()) Query = [[int(i) for i in input().split()] for _ in range(Q)] # N: 処理する区間の長さ N0 = 2**(N+10).bit_length() data = [[None]*(2*N0) for _ in range(2)] INF = (-1, 2**31-1) # 区間[l, r+1)の値をvに書き換える # vは(t, value)という値にする (新しい値ほどtは大きくなる) def update(l, r, v, type): L = l + N0; R = r + N0 while...
Traceback (most recent call last): File "/tmp/tmpbogbg7d7/tmpcjdp5ge6.py", line 1, in <module> N, Q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s680977522
p02551
u562016607
1600547990
Python
PyPy3 (7.3.0)
py
Runtime Error
438
118456
1982
class segtree(): def segfunc(x,y): return min(x,y) #####単位元###### ide_ele = -1 n=1 init_val=[0]*n #num:n以上の最小の2のべき乗 num =2**(n-1).bit_length() seg=[ide_ele]*2*num def __init__(self,INIT_VAL,SEGFUNC,IDE_ELE): self.ide_ele=IDE_ELE self.init_val=[i for i in ...
Traceback (most recent call last): File "/tmp/tmpkt1rp53f/tmp_2xclvwg.py", line 54, in <module> N,Q=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s321376387
p02551
u643223021
1600547988
Python
Python (3.8.2)
py
Runtime Error
33
9044
729
import numpy as np n, q = map(int, input().split()) g = np.zeros((n, n), dtype=np.uint8) query = [] count = 0 g[1:n-1, 1:n-1] = 2 g[:n, n-1] = 1 g[n-1, :n] = 1 for _ in range(q): query = list(map(int, input().split())) if query[0] == 1: g[0, query[1]] = 1 for i in range(1, n-1): i...
File "/tmp/tmpt4s6d6u4/tmpda4qx8vy.py", line 31 if g[i, j] == 2 ^ SyntaxError: expected ':'
s716817349
p02551
u889405092
1600547957
Python
Python (3.8.2)
py
Runtime Error
23
8972
392
N,Q=map(int,imput().split()) X= [list(map(int, input().split())) for i in range(Q)] count=(n-2)*(n-2) A=[N]*(N-2) B=[N]*(N-2) for i in range(Q): if X[i][0]==1 : count=count-(A[(X[i][1]-2)]-2) for j in range(A[(X[i][1]-2)]-2) B[j]=min([B[j],(X[i][1])]) else: count=count-(B[(X[i][1]-2)]-2) for j ...
File "/tmp/tmpo24h_ajb/tmpkh9ts3a7.py", line 9 for j in range(A[(X[i][1]-2)]-2) ^ SyntaxError: expected ':'
s108335809
p02551
u889405092
1600547871
Python
Python (3.8.2)
py
Runtime Error
28
8964
388
N,Q=map(int,imput().split()) X= [list(map(int, input().split())) for i in range(Q)] count=(n-2)*(n-2) A=[N]*(N-2) B=[N]*(N-2) for i in range(Q): if X[i][0]==1 : count=count-(A[(X[i][1]-2)]-2) for j in range(A[(X[i][1]-2)]-2) B[j]=min([B[j],X[i][1]]) else: count=count-(B[(X[i][1]-2)]-2) for j in...
File "/tmp/tmp_r6946ya/tmpfcyyuwcr.py", line 9 for j in range(A[(X[i][1]-2)]-2) ^ SyntaxError: expected ':'
s234507788
p02551
u191874006
1600547774
Python
PyPy3 (7.3.0)
py
Runtime Error
178
95392
1366
#!/usr/bin/env python3 import sys import math from bisect import bisect_right as br from bisect import bisect_left as bl sys.setrecursionlimit(2147483647) from heapq import heappush, heappop,heappushpop from collections import defaultdict from itertools import accumulate from collections import Counter from collection...
Traceback (most recent call last): File "/tmp/tmplng71ov1/tmp75nbzksg.py", line 20, in <module> n, q = LI() ^^^^ ValueError: not enough values to unpack (expected 2, got 0)
s058101625
p02551
u889405092
1600547729
Python
Python (3.8.2)
py
Runtime Error
29
9048
393
N,Q=map(int,imput().split()) X= [list(map(int, input().split())) for i in range(Q)] count=(n-2)*(n-2) A=[N]*(N-2) B=[N]*(N-2) for i in range(Q): if X[i][0]==1 : count=count-(A[(X[i][1]-2)]-2) for j in range(A[(X[i][1]-2)]-2) B[j]=min([B[j],X[i][1]]) else: count=count-(B[(X[i][1]-2)]-2) for j in...
File "/tmp/tmpowv2oakz/tmp1z4oj91l.py", line 9 for j in range(A[(X[i][1]-2)]-2) ^ SyntaxError: expected ':'
s344331700
p02551
u707960254
1600547682
Python
PyPy3 (7.3.0)
py
Runtime Error
355
94488
987
N, Q = map(int, input().split()) black = pow(N-2, 2) right = [N for _ in range(N-2)] bottom = [N for _ in range(N-2)] left = N-1 top = N-1 rigth_diff = 0 bottom_diff = 0 right_most = N bottom_most = N for i in range(Q): q, x = list(map(int, input().split())) if q == 1: black -= (bottom[x-2] -2 -bottom...
Traceback (most recent call last): File "/tmp/tmpageb5syh/tmpsk6mw30t.py", line 1, in <module> N, Q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s772472493
p02551
u191874006
1600547590
Python
PyPy3 (7.3.0)
py
Runtime Error
154
92168
1301
#!/usr/bin/env python3 import sys import math from bisect import bisect_right as br from bisect import bisect_left as bl sys.setrecursionlimit(2147483647) from heapq import heappush, heappop,heappushpop from collections import defaultdict from itertools import accumulate from collections import Counter from collection...
Traceback (most recent call last): File "/tmp/tmp3kjpaa25/tmp5lya148u.py", line 20, in <module> n, q = LI() ^^^^ ValueError: not enough values to unpack (expected 2, got 0)
s458333982
p02551
u707960254
1600547541
Python
PyPy3 (7.3.0)
py
Runtime Error
2207
94392
893
N, Q = map(int, input().split()) black = pow(N-2, 2) right = [N for _ in range(N-2)] bottom = [N for _ in range(N-2)] left = N-1 top = N-1 rigth_diff = 0 bottom_diff = 0 right_most = N bottom_most = N for i in range(Q): q, x = list(map(int, input().split())) if q == 1: black -= (bottom[x-2] -2 -bottom...
Traceback (most recent call last): File "/tmp/tmpf2tcb9sz/tmpnx2uftio.py", line 1, in <module> N, Q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s195036571
p02551
u143509139
1600547519
Python
PyPy3 (7.3.0)
py
Runtime Error
670
94120
508
n, q = map(int, input().split()) c = [] r = [(n - 1, -1)] t = 0 for i in range(q): k, x = map(int, input().split()) if k == 1: c.append((x - 1, t)) else: r.append((x - 1, t)) t += 1 c.sort() r.sort() idx = 0 ans = (len(c)) * (r[0][0]) for i in range(len(r) - 1): x, t = r[i] t...
Traceback (most recent call last): File "/tmp/tmpe1jklhfd/tmpd9kaol4c.py", line 1, in <module> n, q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s050943744
p02551
u074220993
1600547437
Python
Python (3.8.2)
py
Runtime Error
377
32648
396
def main(): N , Q = map(int, input().split()) query = [tuple(map(int, input().split())) for _ in range(Q)] replace = {0:[N-2] * (N-2), 1:[N-2] * (N-2)} replaced = 0 for i, x in range(Q): i += -1 replaced += replace[i][x-2] for j in range(replace[i][x-2]): replace...
Traceback (most recent call last): File "/tmp/tmpguswsmhe/tmpnw2ew3b0.py", line 14, in <module> main() File "/tmp/tmpguswsmhe/tmpnw2ew3b0.py", line 3, in main N , Q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s669145069
p02551
u482789362
1600547026
Python
PyPy3 (7.3.0)
py
Runtime Error
2209
132152
3555
# Modified from https://raw.githubusercontent.com/cheran-senthil/PyRival/master/pyrival/data_structures/LazySegmentTree.py class LazySegmentTree: def __init__(self, data, default=0, func=max): """initialize the lazy segment tree with data""" self._default = default self._func = func ...
Traceback (most recent call last): File "/tmp/tmpjsktu5bb/tmpf3ix_kde.py", line 89, in <module> N, Q = [int(x) for x in input().split()] ^^^^^^^ EOFError: EOF when reading a line
s814229801
p02551
u482789362
1600546766
Python
PyPy3 (7.3.0)
py
Runtime Error
2209
133284
3496
# Modified from https://raw.githubusercontent.com/cheran-senthil/PyRival/master/pyrival/data_structures/LazySegmentTree.py class LazySegmentTree: def __init__(self, data, default=0, func=max): """initialize the lazy segment tree with data""" self._default = default self._func = func ...
Traceback (most recent call last): File "/tmp/tmpi1od_xd_/tmpaudlx_ll.py", line 89, in <module> N, Q = [int(x) for x in input().split()] ^^^^^^^ EOFError: EOF when reading a line
s217008489
p02551
u880400515
1600546253
Python
PyPy3 (7.3.0)
py
Runtime Error
129
71724
548
N, Q = list(map(int, input().split())) tate = [(N - 2)] * (N - 2) yoko = [(N - 2)] * (N - 2) black = (N-2)*(N-2) for i in range(Q): type, x = list(map(int, input().split())) x = x - 2 if (type == 1): # 縦に消す black = black - tate[x] a = min(yoko[j], x) for j in range(tate[x]): ...
Traceback (most recent call last): File "/tmp/tmp6elau1mv/tmpr_6zh1fh.py", line 1, in <module> N, Q = list(map(int, input().split())) ^^^^^^^ EOFError: EOF when reading a line
s828901490
p02552
u890419631
1600729832
Python
Python (3.8.2)
py
Runtime Error
24
8836
76
x = int(input()) if x == 0: print(1) elif x == 1: print(0) else: break
File "/tmp/tmpbbzb0xqd/tmpzcr8vdni.py", line 7 break ^^^^^ SyntaxError: 'break' outside loop
s990513601
p02552
u644265148
1600704403
Python
Python (3.8.2)
py
Runtime Error
23
8932
46
import sys a = sys.argv[1] print(f'{1 - a}')
Traceback (most recent call last): File "/tmp/tmp89fohw2h/tmpsdkisjw7.py", line 3, in <module> a = sys.argv[1] ~~~~~~~~^^^ IndexError: list index out of range
s886513252
p02552
u921676506
1600679206
Python
Python (3.8.2)
py
Runtime Error
23
8872
59
x = input() if x == 0: print(1) else: print(0)
File "/tmp/tmp4wdmg18s/tmphh9godz6.py", line 4 else: ^^^^ SyntaxError: invalid syntax
s013881818
p02552
u548272916
1600626083
Python
Python (3.8.2)
py
Runtime Error
23
9144
385
n = int(input()) x = [] y = [] distance = [] for i in range(n): x1, y1 = input().split() x1 = int(x1) y1 = int(y1) x.append(x1) y.append(y1) for i in range(len(x)): for j in range(i+1,len(x)): temp = abs(x[i] - x[j]) + abs(y[i] - y[j]) distance.append(temp) for i in range(len(distance)-1): ...
Traceback (most recent call last): File "/tmp/tmpjp5_a62s/tmpwrl0f287.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s491549363
p02552
u891540210
1600626002
Python
Python (3.8.2)
py
Runtime Error
25
8984
94
#include <bits/stdc++.h> using namespace std; int main() { int N; cin>>N; cout<<1-N; }
File "/tmp/tmpv6nlldc5/tmpjmmkmupc.py", line 2 using namespace std; ^^^^^^^^^ SyntaxError: invalid syntax
s167039967
p02552
u858244177
1600625439
Python
Python (3.8.2)
py
Runtime Error
22
8940
52
s=input() if s > 0: print(1) else: print(0)
Traceback (most recent call last): File "/tmp/tmpa1x5vwbg/tmpad_kxkxn.py", line 1, in <module> s=input() ^^^^^^^ EOFError: EOF when reading a line
s890420621
p02552
u973167272
1600623418
Python
Python (3.8.2)
py
Runtime Error
24
8856
104
def fun(x): x = int(input()) if x==0: return 1 else: return 0 print(fun(x))
Traceback (most recent call last): File "/tmp/tmpd786p4j3/tmpw15uv72f.py", line 8, in <module> print(fun(x)) ^ NameError: name 'x' is not defined
s418181834
p02552
u973167272
1600623325
Python
Python (3.8.2)
py
Runtime Error
24
8888
103
def fun(x): x = int(input()) if x=0: return 1 else: return 0 print(fun(x))
File "/tmp/tmpjs672kln/tmpivaf61ry.py", line 3 if x=0: ^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
s504535631
p02552
u973167272
1600623264
Python
Python (3.8.2)
py
Runtime Error
26
8880
84
def fun(x) x = int(input()) if x=0: return 1 else: return 0 print(fun(x))
File "/tmp/tmpk430feoe/tmpjms8078l.py", line 1 def fun(x) ^ SyntaxError: expected ':'
s959377692
p02552
u323045245
1600609930
Python
Python (3.8.2)
py
Runtime Error
26
8944
51
x=int(input()) if x==!: print(0) else: print(1)
File "/tmp/tmpmbfvbo3t/tmph2kzl012.py", line 2 if x==!: ^ SyntaxError: invalid syntax
s663470211
p02552
u754511616
1600549154
Python
Python (3.8.2)
py
Runtime Error
25
9052
118
a,b,c,d=list(map(int,input().split())) if (b and d)<=0: print(a*c) elif (b or d)<=0: print(a*c) else: print(d*b)
Traceback (most recent call last): File "/tmp/tmpi7qzuxzo/tmp1va4l8kw.py", line 1, in <module> a,b,c,d=list(map(int,input().split())) ^^^^^^^ EOFError: EOF when reading a line
s686514972
p02552
u754511616
1600549114
Python
Python (3.8.2)
py
Runtime Error
23
8920
118
a,b,c,d=list(map(int,input().split())) if (b and d)<=0: print(a*c) elif (b of d)<=0: print(a*c) else: print(d*b)
File "/tmp/tmphwytf7dv/tmp746_h5nh.py", line 4 elif (b of d)<=0: ^^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma?
s694515026
p02552
u896403827
1600540089
Python
Python (3.8.2)
py
Runtime Error
27
8648
61
import sys x = int(sys.stdin.read().strip()) print int(not x)
File "/tmp/tmp71onlh4a/tmpk8dw1c62.py", line 3 print int(not x) ^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s813893692
p02552
u921676506
1600539940
Python
Python (3.8.2)
py
Runtime Error
23
9128
68
x = int(input()) if x == 1: print(0) if X == 0: print(1)
Traceback (most recent call last): File "/tmp/tmpyokn4tvx/tmp8eivz450.py", line 1, in <module> x = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s034564490
p02552
u921676506
1600539815
Python
Python (3.8.2)
py
Runtime Error
24
9060
62
x = input() if x == 1: print(0) if X == 0: print(1)
Traceback (most recent call last): File "/tmp/tmp6isxtrmy/tmpwigbypvn.py", line 1, in <module> x = input() ^^^^^^^ EOFError: EOF when reading a line
s611861034
p02552
u119187285
1600534653
Python
Python (3.8.2)
py
Runtime Error
22
8952
54
a=input() if a==0: print(1) else if a==1: print(0)
File "/tmp/tmpbqwv07_p/tmpntmvi2yc.py", line 4 else if a==1: ^^ SyntaxError: expected ':'
s958669146
p02552
u843060713
1600527810
Python
Python (3.8.2)
py
Runtime Error
22
8924
60
x = input() if x = "1": print(0) elif x = "0": print(1)
File "/tmp/tmphft7hap9/tmpjmsulh_2.py", line 3 if x = "1": ^^^^^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
s732872852
p02552
u639703036
1600523697
Python
Python (3.8.2)
py
Runtime Error
28
8844
72
n = int(input()) if(n == 0): print(1) else if(n == 1): print(0)
File "/tmp/tmprk8obczi/tmpddve_4v7.py", line 5 else if(n == 1): ^^ SyntaxError: expected ':'
s665617494
p02552
u639703036
1600523653
Python
Python (3.8.2)
py
Runtime Error
25
8880
74
n = int(input()) if(n == 0): printf(1) else if(n == 1): printf(0)
File "/tmp/tmpdjf3m07e/tmpit79eytj.py", line 5 else if(n == 1): ^^ SyntaxError: expected ':'
s490736485
p02552
u639703036
1600523592
Python
Python (3.8.2)
py
Runtime Error
31
9124
69
n = int(input()) if(n == 0): printf(1) if(n == 1): printf(0)
Traceback (most recent call last): File "/tmp/tmpc3by43pe/tmpebc9hvce.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s820013622
p02552
u639703036
1600523553
Python
Python (3.8.2)
py
Runtime Error
32
9024
71
n = int(input()) if(n == 0): printf(1) if(n == 1): printf("0")
Traceback (most recent call last): File "/tmp/tmpnbbqy8ns/tmpac7kgn7t.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s627652753
p02552
u090046582
1600517173
Python
Python (3.8.2)
py
Runtime Error
28
9072
37
if x == 0: print(1) else: print(0)
Traceback (most recent call last): File "/tmp/tmpsc_9f5g2/tmpimhjsj18.py", line 2, in <module> if x == 0: ^ NameError: name 'x' is not defined
s796454711
p02552
u213603001
1600516760
Python
Python (3.8.2)
py
Runtime Error
20
9072
27
N=int(niput()) print(1 - N)
Traceback (most recent call last): File "/tmp/tmpzlzfqpx0/tmp0x20l7zy.py", line 1, in <module> N=int(niput()) ^^^^^ NameError: name 'niput' is not defined. Did you mean: 'input'?
s293888176
p02552
u090046582
1600516696
Python
Python (3.8.2)
py
Runtime Error
25
9008
36
if x == 0: print(1) else: print(0)
Traceback (most recent call last): File "/tmp/tmpn_o04et4/tmpd_tvc5ll.py", line 1, in <module> if x == 0: ^ NameError: name 'x' is not defined
s664595126
p02552
u182689172
1600516562
Python
Python (3.8.2)
py
Runtime Error
23
9084
73
x = input() x = input() if x == 0: print(1) elif x == 1: print(0)
Traceback (most recent call last): File "/tmp/tmpnm3mo2ry/tmp0e4lxe_p.py", line 1, in <module> x = input() ^^^^^^^ EOFError: EOF when reading a line
s519155394
p02552
u918601425
1600516241
Python
Python (3.8.2)
py
Runtime Error
23
8940
20
print(1-int(input())
File "/tmp/tmp_97xu6p1/tmp_dasx3je.py", line 1 print(1-int(input()) ^ SyntaxError: '(' was never closed
s981829565
p02552
u622838398
1600496832
Python
Python (3.8.2)
py
Runtime Error
24
9020
38
if x == 0: return 1 else: return 0
File "/tmp/tmpwwuz6uis/tmpvzrluuml.py", line 2 return 1 ^^^^^^^^ SyntaxError: 'return' outside function
s742739190
p02552
u383805907
1600467608
Python
Python (3.8.2)
py
Runtime Error
26
9012
53
input = int(input()) if input == 0: return 1 return 0
File "/tmp/tmpu1qj440w/tmp48b2ny1r.py", line 2 if input == 0: return 1 ^^^^^^^^ SyntaxError: 'return' outside function
s509847150
p02552
u859547105
1600463033
Python
Python (3.8.2)
py
Runtime Error
25
8932
47
if x == 0: print('1') elif x == 1: print('0')
Traceback (most recent call last): File "/tmp/tmpyun36l4e/tmplq8s0zdg.py", line 1, in <module> if x == 0: ^ NameError: name 'x' is not defined
s736948557
p02552
u472179812
1600457614
Python
Python (3.8.2)
py
Runtime Error
27
8964
42
x = input() x == 0 print 1 x == 1 print 0
File "/tmp/tmpt6dryixl/tmp39olk546.py", line 3 print 1 ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s329042800
p02552
u472179812
1600457476
Python
Python (3.8.2)
py
Runtime Error
24
9012
35
if x==0 print 1 if x == 1 ptint 0
File "/tmp/tmp6lkehxva/tmpf2k096jw.py", line 3 if x==0 ^ SyntaxError: expected ':'
s907246500
p02552
u220302984
1600451851
Python
Python (3.8.2)
py
Runtime Error
21
8904
324
import java.util.*; import java.io.*; import java.lang.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); if (a==0) System.out.println("1"); else System.out.println("0"); ...
File "/tmp/tmpzzgqk44i/tmpygx_jhzv.py", line 1 import java.util.*; ^ SyntaxError: invalid syntax
s940758388
p02552
u267933821
1600430831
Python
Python (3.8.2)
py
Runtime Error
25
8908
55
if x==0: return 1 elif x==1: return 0 else: break
File "/tmp/tmphrjlyu_j/tmp0e7119zs.py", line 2 return 1 ^^^^^^^^ SyntaxError: 'return' outside function
s475560260
p02552
u067694718
1600427007
Python
Python (3.8.2)
py
Runtime Error
28
9000
15
print(~input())
Traceback (most recent call last): File "/tmp/tmpjvmn0n_o/tmpi120d0ga.py", line 1, in <module> print(~input()) ^^^^^^^ EOFError: EOF when reading a line
s261682061
p02552
u718536599
1600413737
Python
Python (3.8.2)
py
Runtime Error
23
8972
64
x=int(input()) if x==0: ans=1 else x==1: ans=0 print(ans)
File "/tmp/tmp9i82_bbt/tmplqpq5e_0.py", line 4 else x==1: ^ SyntaxError: expected ':'
s906318257
p02552
u515638999
1600391481
Python
Python (3.8.2)
py
Runtime Error
24
8976
26
n = int(input()) print(!n)
File "/tmp/tmpayknnhem/tmph5snub2r.py", line 2 print(!n) ^ SyntaxError: invalid syntax
s073664747
p02552
u627568967
1600386328
Python
PyPy3 (7.3.0)
py
Runtime Error
441
92748
24
x=int(input()) print(!x)
File "/tmp/tmpk1eerkh9/tmp35a82qln.py", line 2 print(!x) ^ SyntaxError: invalid syntax
s234907499
p02552
u171356057
1600383790
Python
Python (3.8.2)
py
Runtime Error
25
8852
37
def(x) if x == 1 return 0 return 1
File "/tmp/tmp_7e_pscm/tmpn85tju9s.py", line 1 def(x) ^ SyntaxError: invalid syntax
s304912887
p02552
u816552564
1600379145
Python
Python (3.8.2)
py
Runtime Error
23
8892
56
x = input() if x ==0: print(1) else x == 1: print(0)
File "/tmp/tmpahuclqid/tmprr39ifxd.py", line 4 else x == 1: ^ SyntaxError: expected ':'
s055916106
p02552
u629254463
1600376585
Python
Python (3.8.2)
py
Runtime Error
25
9064
38
if x==1 : print(0) else : print(1)
Traceback (most recent call last): File "/tmp/tmpn47u0ntp/tmph26m76kc.py", line 1, in <module> if x==1 : ^ NameError: name 'x' is not defined
s136236380
p02552
u629254463
1600376483
Python
Python (3.8.2)
py
Runtime Error
24
8920
34
if x==1 : print(0) else print(1)
File "/tmp/tmpsh4kn1uu/tmpyighq7e2.py", line 3 else print(1) ^^^^^ SyntaxError: expected ':'
s432472224
p02552
u191889858
1600373310
Python
Python (3.8.2)
py
Runtime Error
29
8820
102
x=int(input('Enter 0~1:')) if x==0: print('1') elif x==1: print('0') else: print('')
File "/tmp/tmp1z9t_c5z/tmp2i2dm5yv.py", line 4 elif x==1: ^^^^ SyntaxError: invalid syntax
s350036428
p02552
u191889858
1600372540
Python
Python (3.8.2)
py
Runtime Error
22
8884
62
x=int(input('x=')) if x=0: print('1') else: print('0')
File "/tmp/tmpb00glgej/tmppnwdf9jp.py", line 2 if x=0: ^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
s543663184
p02552
u191889858
1600372295
Python
Python (3.8.2)
py
Runtime Error
25
8944
68
x=int(input('x=')) if x==0: print('1') else x==1: print('0')
File "/tmp/tmpp0b81n4q/tmpx9o9lf4p.py", line 4 else x==1: ^^^^ SyntaxError: invalid syntax
s192886111
p02552
u191889858
1600371982
Python
Python (3.8.2)
py
Runtime Error
24
8944
70
x=int(input) if int(x)=0: print('1') elif int(x)=1: print('0')
File "/tmp/tmp42uq0xtz/tmpfikauoim.py", line 2 if int(x)=0: ^^^^^^ SyntaxError: cannot assign to function call here. Maybe you meant '==' instead of '='?
s409696589
p02552
u191889858
1600371651
Python
Python (3.8.2)
py
Runtime Error
23
8992
74
x=input('Enter number:') if int(x)==0: print('1') else: print('0')
File "/tmp/tmpfbdsg0tr/tmpfsuxtp4x.py", line 4 else: ^^^^ SyntaxError: invalid syntax
s838251974
p02552
u336828547
1600371618
Python
Python (3.8.2)
py
Runtime Error
22
9000
69
x=input() if x==1: print("0") elif x==0: print("1") else: break
File "/tmp/tmpbqbj39iw/tmprtuk3umk.py", line 7 break ^^^^^ SyntaxError: 'break' outside loop
s543708757
p02552
u517417276
1600371419
Python
Python (3.8.2)
py
Runtime Error
24
8940
39
if x = 0: print(1) else: print(0)
File "/tmp/tmpebg7hzpn/tmprkhxp3mp.py", line 1 if x = 0: ^^^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
s401139550
p02552
u537208079
1600371393
Python
Python (3.8.2)
py
Runtime Error
25
8972
62
input(a) if a == '0': print('1') elif a == '1': print('0')
Traceback (most recent call last): File "/tmp/tmp1zsf9uzc/tmpjtgt4qxl.py", line 1, in <module> input(a) ^ NameError: name 'a' is not defined
s433749080
p02552
u336828547
1600370585
Python
Python (3.8.2)
py
Runtime Error
24
8780
82
x=include("xを入力してください") if x==1: print("0") else: print("1")
Traceback (most recent call last): File "/tmp/tmpm0wia6uj/tmprmgdvnl4.py", line 1, in <module> x=include("xを入力してください") ^^^^^^^ NameError: name 'include' is not defined
s326739745
p02552
u440649533
1600370330
Python
Python (3.8.2)
py
Runtime Error
26
8772
53
a=input() if a=='1': print('0') else: print('1')
File "/tmp/tmpu39ls2yi/tmpxps9fgof.py", line 4 else: ^ IndentationError: unindent does not match any outer indentation level
s307000228
p02552
u336828547
1600370282
Python
Python (3.8.2)
py
Runtime Error
29
8848
84
x=input(xを入力してください) if x==1: print("0") elif x==0: print("1")
File "/tmp/tmpez7ufnz4/tmphb4q93e6.py", line 4 elif x==0: ^ IndentationError: unindent does not match any outer indentation level
s731971572
p02552
u717792745
1600367120
Python
Python (3.8.2)
py
Runtime Error
25
9192
755
n=int(input()) import sys a=list(map(int,input().split())) b=list(map(int,input().split())) d={} if(n==1): if(a==b): print('No') else: print('Yes') sys.exit() possible=True for x in b: if(d.get(x)==None): d[x]=1 else: d[x]+=1 if(d[x]>(n)//2): possible=False break ...
Traceback (most recent call last): File "/tmp/tmprbjnm259/tmpyl77ii50.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s143061943
p02552
u363961322
1600365132
Python
Python (3.8.2)
py
Runtime Error
28
8820
76
i = int(input()) if i = 0: print(1) elif i = 1: print(0) else: pass
File "/tmp/tmpxq35oxrz/tmp7wmnrezk.py", line 2 if i = 0: ^^^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
s633489401
p02552
u818857408
1600362770
Python
Python (3.8.2)
py
Runtime Error
25
8908
61
n = int(input()) if n == 1: print(0) elif: n == 0 print(1)
File "/tmp/tmpfmix3gjh/tmpjtx3gzi2.py", line 5 elif: n == 0 ^ SyntaxError: invalid syntax