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
s762903259
p02546
u345132740
1600615505
Python
Python (3.8.2)
py
Runtime Error
26
8960
62
S=input() if (S[-1:]==s): print(S+"es") else: print(S+"s")
Traceback (most recent call last): File "/tmp/tmpop2zmx0z/tmpeszejwre.py", line 1, in <module> S=input() ^^^^^^^ EOFError: EOF when reading a line
s976766112
p02546
u085186789
1600615223
Python
Python (3.8.2)
py
Runtime Error
21
8792
93
words = input() if words[-1] != s: words += "s" else: words += "es" print(words)
Traceback (most recent call last): File "/tmp/tmplif22h6n/tmpxk4r0hnx.py", line 1, in <module> words = input() ^^^^^^^ EOFError: EOF when reading a line
s598459942
p02546
u085186789
1600615158
Python
Python (3.8.2)
py
Runtime Error
26
8996
92
words = input() if words[-1] != s: words += 's' else: words += 'es' print(words)
Traceback (most recent call last): File "/tmp/tmpubud1zx2/tmpkngcacnm.py", line 1, in <module> words = input() ^^^^^^^ EOFError: EOF when reading a line
s117033063
p02546
u548272916
1600612573
Python
Python (3.8.2)
py
Runtime Error
31
9016
148
string = input() if string[-1] != 's': new_string = string[0:-1] + 's' if string[-1] = 's': new_string = string[0:-1] +'es' print(new_string)
File "/tmp/tmphuom5xmi/tmprdlvvin9.py", line 5 if string[-1] = 's': ^^^^^^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
s015624524
p02546
u627600101
1600609337
Python
Python (3.8.2)
py
Runtime Error
26
9288
2432
#####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/tmp55f4_n_7/tmp0hikrkvg.py", line 70, in <module> N, Q = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s818818939
p02546
u441320782
1600609091
Python
Python (3.8.2)
py
Runtime Error
25
9128
185
from itertools import product N=int(input()) count=0 lis=[i for i in range(1,N+1)] x=list(itertools.product(lis,repeat=3)) for i in x: if y[0]*y[1]+y[2]==N: count+=1 print(count)
Traceback (most recent call last): File "/tmp/tmpoud6xvux/tmp7z4_2ffv.py", line 2, in <module> N=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s428129423
p02546
u629355744
1600607662
Python
Python (3.8.2)
py
Runtime Error
27
8944
67
s = input() if s[-1]=='s': print(s+'es') else: print(s+'s')
File "/tmp/tmpjthgfuwv/tmpzl42nzoh.py", line 4 else: ^^^^ SyntaxError: invalid syntax
s745646759
p02546
u675313477
1600600566
Python
Python (3.8.2)
py
Runtime Error
22
9132
205
c=0 for _ in range(int(input())): x,y = map(int,input().split()) if x==y: c+=1 else: c=0 if c==3: c=-1 print('Yes') break if c!=-1: print('No')
Traceback (most recent call last): File "/tmp/tmp6_x48ahg/tmp22283e2q.py", line 2, in <module> for _ in range(int(input())): ^^^^^^^ EOFError: EOF when reading a line
s047798225
p02546
u326408598
1600599928
Python
Python (3.8.2)
py
Runtime Error
24
9008
73
S = input() if S[-1] == "s": print(S + "es") else: print(S + "s")
File "/tmp/tmp_u12xko8/tmpsgdmdnuf.py", line 4 else: ^^^^ SyntaxError: invalid syntax
s564803025
p02546
u326408598
1600599849
Python
Python (3.8.2)
py
Runtime Error
23
8952
82
s = input() if s[-1] != "s": print(s+'s') elif s[-1] == 's' print(s[:-1]+'es')
File "/tmp/tmpa4yonhvr/tmp351ql4ne.py", line 4 elif s[-1] == 's' ^ SyntaxError: expected ':'
s282658922
p02546
u326408598
1600599737
Python
Python (3.8.2)
py
Runtime Error
27
9000
119
s = input() if s[-1] != "s": print(s+'s') elif s[-1] == 's' and s[-2] != 'e': print(s[:-1]+'es') else: print(s)
Traceback (most recent call last): File "/tmp/tmpvgui0lo4/tmpsvuqn420.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s125860664
p02546
u624812250
1600599089
Python
Python (3.8.2)
py
Runtime Error
28
9048
57
if S[-1] == "s": print(S + "es") else: print(S + "s")
Traceback (most recent call last): File "/tmp/tmpz590pjjj/tmpwxgffmdn.py", line 1, in <module> if S[-1] == "s": ^ NameError: name 'S' is not defined
s950178252
p02546
u624812250
1600598833
Python
Python (3.8.2)
py
Runtime Error
25
8900
58
if S[-1] == s: print(S + "es") else: print(S + "s")
Traceback (most recent call last): File "/tmp/tmps7pvkwxb/tmp9ea1rwfo.py", line 1, in <module> if S[-1] == s: ^ NameError: name 'S' is not defined
s231480880
p02546
u893297141
1600593712
Python
PyPy2 (7.3.0)
py
Runtime Error
332
85304
70
s = input() if s[-1] == 's': print(s + 'es') else: print(s + 's')
Traceback (most recent call last): File "/tmp/tmpoa2c5jv9/tmpd1p0mwnp.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s807152331
p02546
u850087201
1600588603
Python
PyPy3 (7.3.0)
py
Runtime Error
97
74784
435
N,K = map(int,input().split()) l = [] mod = 998244353 for i in range(K): L,R = map(int,input().split()) l.append([L,R]) l.sort() a = [0 for i in range(N+1)] a[1] = 1 b = [0 for i in range(N+1)] b[1] = 1 for i in range(2,N+1): for j in range(K): if l[j][0] < i: a[i] += (b[i-l[j][0]]-b[ma...
Traceback (most recent call last): File "/tmp/tmpv68hcayt/tmp5m083dyb.py", line 1, in <module> N,K = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s995569972
p02546
u650932312
1600586848
Python
Python (3.8.2)
py
Runtime Error
27
8956
72
S = input() if S[-1] == 's': ans += 'es' else: ans += 's' print(ans)
Traceback (most recent call last): File "/tmp/tmpflgprmhs/tmpg0ais17o.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s346773925
p02546
u629350026
1600583313
Python
Python (3.8.2)
py
Runtime Error
27
9044
99
s=str(input()) s=list(s) if s[len(s)-1]=="s": print("".join(s)+"es") else: print("".join()+"s")
Traceback (most recent call last): File "/tmp/tmp_otcnkl0/tmpgt95jzr_.py", line 1, in <module> s=str(input()) ^^^^^^^ EOFError: EOF when reading a line
s500583536
p02546
u369133448
1600576270
Python
Python (3.8.2)
py
Runtime Error
25
9396
584
import collections n,x,m=map(int,input().split()) if n==1 or x==0: print(x) exit() start,end,loopcnt=0,0,0 a={x:0} wk=x for i in range(1,m): wk=(wk*wk)%m if not wk in a: a[wk]=i else: start=a[wk] end=i break a=sorted(a.items(),key=lambda x:x[1]) koteiindex=min(n,start) koteiwa=0 for i in range...
Traceback (most recent call last): File "/tmp/tmpvqb3vkhh/tmp90uanpds.py", line 2, in <module> n,x,m=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s875835937
p02546
u242580186
1600576266
Python
PyPy3 (7.3.0)
py
Runtime Error
95
74824
555
import sys input = sys.stdin.readline.rstrip sys.setrecursionlimit(10**6) import decimal from decimal import Decimal decimal.getcontext().prec = 10 from heapq import heappush, heappop, heapify import math from math import gcd import itertools as it import collections from collections import deque def inp(): retu...
Traceback (most recent call last): File "/tmp/tmpptfoe61k/tmpmsbgl_9l.py", line 2, in <module> input = sys.stdin.readline.rstrip ^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'builtin_function_or_method' object has no attribute 'rstrip'
s754130546
p02546
u242580186
1600576244
Python
PyPy3 (7.3.0)
py
Runtime Error
97
74620
557
import sys input = sys.stdin.readline.rstrip() sys.setrecursionlimit(10**6) import decimal from decimal import Decimal decimal.getcontext().prec = 10 from heapq import heappush, heappop, heapify import math from math import gcd import itertools as it import collections from collections import deque def inp(): re...
Traceback (most recent call last): File "/tmp/tmph7m4ddmc/tmp_xqsbdyt.py", line 2, in <module> input = sys.stdin.readline.rstrip() ^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'builtin_function_or_method' object has no attribute 'rstrip'
s791794079
p02546
u242580186
1600575954
Python
PyPy3 (7.3.0)
py
Runtime Error
111
77136
681
import sys input = sys.stdin.readline sys.setrecursionlimit(10**6) import decimal from decimal import Decimal decimal.getcontext().prec = 10 from heapq import heappush, heappop, heapify import math from math import gcd import itertools as it import collections from collections import deque def inp(): return in...
Traceback (most recent call last): File "/tmp/tmprkpexki9/tmpzngedo4o.py", line 24, in <module> n = inp() ^^^^^ File "/tmp/tmprkpexki9/tmpzngedo4o.py", line 16, in inp return int(input()) ^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''
s705432195
p02546
u872259176
1600565906
Python
Python (3.8.2)
py
Runtime Error
28
8964
84
s = input() l = len(s) if s[l - 1] == "s": s += "es" else: l.append("s") print(s)
Traceback (most recent call last): File "/tmp/tmpkk583cz6/tmpzz74hlfz.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s353319048
p02546
u872259176
1600565840
Python
Python (3.8.2)
py
Runtime Error
23
9084
83
s = input() l = len(s) if s[l - 1] == s: l.append(es) else: l.append(s) print(s)
Traceback (most recent call last): File "/tmp/tmpoyo7favr/tmp6a9bmtqq.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s189546365
p02546
u872259176
1600565777
Python
Python (3.8.2)
py
Runtime Error
25
8916
86
s = input() l = len(s) if(s[l - 1]) == 's': l.append(es) else: l.append(s) print(s)
Traceback (most recent call last): File "/tmp/tmpjhdwxl67/tmpeflykpbp.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s309293157
p02546
u872259176
1600565543
Python
Python (3.8.2)
py
Runtime Error
29
9020
84
s = input() l = len(s) if(s[l - 1]) == s: l.append(es) else: l.append(s) print(s)
Traceback (most recent call last): File "/tmp/tmp6kafk6qt/tmp_xknxkgs.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s785539412
p02546
u255438107
1600562217
Python
Python (3.8.2)
py
Runtime Error
26
9012
82
n = input() if n[len(n - 1)] == 's': print(n + 'es') else: print(n + 's')
Traceback (most recent call last): File "/tmp/tmpl0oej3tx/tmp86ja5bg2.py", line 1, in <module> n = input() ^^^^^^^ EOFError: EOF when reading a line
s938003711
p02546
u004353595
1600558481
Python
Python (3.8.2)
py
Runtime Error
24
8900
99
s=input() if len(s)<=1: print(s) else: if s[-1]='s': print(s+'es') else: print(s+'s')
File "/tmp/tmpua342dcc/tmpzeedfoug.py", line 5 if s[-1]='s': ^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
s471007639
p02546
u470481460
1600557521
Python
Python (3.8.2)
py
Runtime Error
23
9088
72
s=sys.stdin if s[len(s)-1] =="s": print(s + "es") else: print(s + "s")
Traceback (most recent call last): File "/tmp/tmptz5f668a/tmp9ckyqi83.py", line 1, in <module> s=sys.stdin ^^^ NameError: name 'sys' is not defined
s705893424
p02546
u101850722
1600555925
Python
Python (3.8.2)
py
Runtime Error
27
8864
88
s = input() p = "" if(s.endswith("s")){ p = s + "es" }else{ p = s + "s" } print(s)
File "/tmp/tmp89y0307u/tmpykkpf1kn.py", line 5 p = s + "es" ^^^^^^^^^^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
s799935637
p02546
u573268031
1600555538
Python
Python (3.8.2)
py
Runtime Error
28
9080
54
S = input() if S[-1] == s: S += es else: S += s
Traceback (most recent call last): File "/tmp/tmp31o3hthv/tmpkvt7kj2l.py", line 1, in <module> S = input() ^^^^^^^ EOFError: EOF when reading a line
s913736740
p02546
u715985689
1600553563
Python
Python (3.8.2)
py
Runtime Error
27
8804
55
print(input().strip()+('es' if s[-1] == 's' else 's'))
Traceback (most recent call last): File "/tmp/tmpcsqikpoa/tmp89n6ou58.py", line 1, in <module> print(input().strip()+('es' if s[-1] == 's' else 's')) ^^^^^^^ EOFError: EOF when reading a line
s069453263
p02546
u715985689
1600553519
Python
Python (3.8.2)
py
Runtime Error
24
8956
46
print(input()+('es' if s[-1] == 's' else 's'))
Traceback (most recent call last): File "/tmp/tmp8yia1ume/tmpdjtjfznc.py", line 1, in <module> print(input()+('es' if s[-1] == 's' else 's')) ^^^^^^^ EOFError: EOF when reading a line
s269786459
p02546
u463945054
1600551619
Python
Python (3.8.2)
py
Runtime Error
30
9144
83
N = int(input()) k=0 for s in range(1,N): k = (N-1) // s t += k print (t)
Traceback (most recent call last): File "/tmp/tmpeq6c4j0k/tmpfah4ac3d.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s070869098
p02546
u442636632
1600550964
Python
Python (3.8.2)
py
Runtime Error
29
9156
245
N = int(input()) A = 1 B = 1 C = 1 answer = 0 while C < N: B = 1 while B < N: A = 1 while A < N: if (A * B) + C == N: answer += 1 A += 1 B += 1 C += 1 print(answer)
Traceback (most recent call last): File "/tmp/tmp9uh2tvuw/tmpxy5o88ud.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s841151807
p02546
u956318161
1600550761
Python
Python (3.8.2)
py
Runtime Error
31
9184
102
n = int(input()) import math ans = 0 for a in range(1, n): ans += math.floor((n - 1) / a) print(ans)
Traceback (most recent call last): File "/tmp/tmpq6nf56dl/tmpwomn8muu.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s906238309
p02546
u774959455
1600549675
Python
Python (3.8.2)
py
Runtime Error
24
9204
306
N = int(input().strip()) a = [] c = [] f = 0 for i in range(N): array = list(map(int, input().strip().split())) a.append(array) for i in range(N): if(f == 0 or f == i-1): if(a[i][0] == a[i][1]): f=i c.append(1) else: f=0 if(len(c) >= 3): print("Yes") else: print("No")
Traceback (most recent call last): File "/tmp/tmpmqm2puix/tmp5k1dx5ty.py", line 1, in <module> N = int(input().strip()) ^^^^^^^ EOFError: EOF when reading a line
s920420565
p02546
u286422818
1600549651
Python
Python (3.8.2)
py
Runtime Error
24
9208
405
#!/usr/local/bin/python3 N, X, M = map(int, input().split()) def f(x, m): return x**2 % m check = [False for _ in range(M)] d = [X] max_x = 0 for _ in range(1, N+1): X = f(X, M) if check[X]: break else: check[X] = True d.append(X) idx = d.index(X) ans = sum(d[:idx]) N -= idx d = ...
Traceback (most recent call last): File "/tmp/tmp6v9s1e6i/tmpbk1ti64c.py", line 3, in <module> N, X, M = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s731246078
p02546
u401481862
1600549435
Python
Python (3.8.2)
py
Runtime Error
30
9200
447
n, x, m = map(int, input().split()) a = x s = 0 h = [] h.append(a) i = 0 fl = 0 while i < n: s += a a = (a*a) % m if a == 0: break i += 1 if fl == 0 and a in h: fl = 1 po = h.index(a) ss = 0 for j in range(po): ss += h[j] s2 = s - ss f = (n - po) // ...
Traceback (most recent call last): File "/tmp/tmpavqv_j2t/tmpwkcxj5g8.py", line 1, in <module> n, x, m = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s309988739
p02546
u936988827
1600549277
Python
Python (3.8.2)
py
Runtime Error
23
8892
91
line = input() if line[len(line)] == ("s"): line += "es" else: line += "s" print(line)
Traceback (most recent call last): File "/tmp/tmpq1yarid0/tmpp3c45nz3.py", line 1, in <module> line = input() ^^^^^^^ EOFError: EOF when reading a line
s552207657
p02546
u021814034
1600549109
Python
PyPy2 (7.3.0)
py
Runtime Error
359
96700
6989
from __future__ import division, print_function # import threading # threading.stack_size(2**27) # import sys # sys.setrecursionlimit(10**7) import sys from sys import stdin, stdout import bisect #c++ upperbound import math import heapq ##import numpy as np ##i_m=9223372036854775807 def modinv(n,p): ret...
Traceback (most recent call last): File "/tmp/tmp82h0xoyg/tmp1rk2hvqd.py", line 256, in <module> main() File "/tmp/tmp82h0xoyg/tmp1rk2hvqd.py", line 125, in main n,x,m=cin();f=0 ^^^^^ ValueError: not enough values to unpack (expected 3, got 0)
s710156920
p02546
u146803137
1600548391
Python
Python (3.8.2)
py
Runtime Error
24
9248
2239
import math ini = lambda : int(input()) inm = lambda : map(int,input().split()) inl = lambda : list(map(int,input().split())) gcd = lambda x,y : gcd(y,x%y) if x%y else y def factorization(n): arr = [] temp = n for i in range(2, int(-(-n**0.5//1))+1): if temp%i==0: cnt=0 while...
Traceback (most recent call last): File "/tmp/tmpo7lfj0tn/tmpy4ujlg5h.py", line 80, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s390127566
p02546
u617515020
1600548351
Python
PyPy3 (7.3.0)
py
Runtime Error
86
74740
287
import numpy as np P=998244353 N,K=map(int,input().split()) LR=[] for _ in range(K): l,r=map(int,input().split()) LR+=range(l,r+1) LR=list(set(LR)) LR=np.array(LR) c=[0]*N c[0]=1 for k in range(N): S=list(LR[LR<=k]) while len(S): c[k]+=c[k-S[-1]]%P S.pop() print(c[-1]%P)
Traceback (most recent call last): File "/tmp/tmpx0smz6d_/tmp4uorda4r.py", line 3, in <module> N,K=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s765174170
p02546
u617515020
1600548331
Python
PyPy3 (7.3.0)
py
Runtime Error
98
68732
282
import numpy as np P=998244353 N,K=map(int,input().split()) LR=[] for _ in range(K): l,r=map(int,input().split()) LR+=range(l,r+1) LR=list(set(LR)) LR=np.array(LR) c=[0]*N c[0]=1 for k in range(N): S=LR[LR<=k] while len(S): c[k]+=c[k-S[-1]]%P S=S[:-1] print(c[-1]%P)
Traceback (most recent call last): File "/tmp/tmplg7elxxw/tmpkdskxhsz.py", line 3, in <module> N,K=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s264784307
p02546
u163528399
1600548288
Python
Python (3.8.2)
py
Runtime Error
27
9152
115
N=int(input()) y=0 for j in range(1,N): for k in range(1,N): if (N-k)%j==0: y=y+1 print(y)
Traceback (most recent call last): File "/tmp/tmpgvrcvel_/tmps7g9g249.py", line 1, in <module> N=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s044669759
p02546
u945761460
1600548283
Python
Python (3.8.2)
py
Runtime Error
31
9524
674
import sys readline = sys.stdin.readline sys.setrecursionlimit(10**8) mod = 10**9+7 #mod = 998244353 INF = 10**18 eps = 10**-7 n,x,m=map(int,input().split()) s=set() l=[] flag=False cnt=1 ans=0 l.append(x) for i in range(m): if x not in s: s.add(x) x=(x**2)%m l.append(x) else: break h=len(l) cnt=...
Traceback (most recent call last): File "/tmp/tmp5d8_o23_/tmp0w1zy_2j.py", line 9, in <module> n,x,m=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s777065594
p02546
u146803137
1600548120
Python
Python (3.8.2)
py
Runtime Error
31
9244
2239
import math ini = lambda : int(input()) inm = lambda : map(int,input().split()) inl = lambda : list(map(int,input().split())) gcd = lambda x,y : gcd(y,x%y) if x%y else y def factorization(n): arr = [] temp = n for i in range(2, int(-(-n**0.5//1))+1): if temp%i==0: cnt=0 while...
Traceback (most recent call last): File "/tmp/tmpkxisbyfn/tmpdfyotwid.py", line 80, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s917170085
p02546
u610042046
1600548097
Python
PyPy3 (7.3.0)
py
Runtime Error
99
68716
472
n, x, m = map(int, input().split()) a = [x] if n == 1: print(x) exit() for i in range(n-1): ad = (a[-1]**2) % m if ad in a: roop_s = a.index(ad) roop_e = len(a) break else: a.append(ad) if i == n-2: print(sum(a)) exit() roop_t = (n-roop_s) // (roop...
Traceback (most recent call last): File "/tmp/tmpk_woplg4/tmpuzpqospo.py", line 1, in <module> n, x, m = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s848448533
p02546
u774959455
1600548061
Python
Python (3.8.2)
py
Runtime Error
24
9100
318
N = int(input().strip()) a = [] c =0 f = 0 for i in range(N): array = list(map(int, input().strip().split())) a.append(array) for i in range(N): if(f == 0 or f == i-1): if(a[i][0] == a[i][1]): f=i c+=1 else: f=0 c=0 else : f=0 c=0 if(c >= 3): print("Yes") else: print("No")
Traceback (most recent call last): File "/tmp/tmpy5_wu38i/tmpmi01fyhg.py", line 1, in <module> N = int(input().strip()) ^^^^^^^ EOFError: EOF when reading a line
s790760346
p02546
u774959455
1600548013
Python
Python (3.8.2)
py
Runtime Error
31
8904
326
N = int(input().strip()) a = [] c =0 f = 0 for i in range(N): array = list(map(int, input().strip().split())) a.append(array) for i in range(N): if(f == 0 or f == i-1): if(a[i][0] == a[i][1]): f=i c+=1 else: f=0 c=0 else : f=0 c=0 if(c >= 3): print("Yes") else: print...
File "/tmp/tmp2940e97u/tmpmh_76ol5.py", line 23 f=0 ^ IndentationError: unindent does not match any outer indentation level
s119616299
p02546
u001689394
1600548011
Python
Python (3.8.2)
py
Runtime Error
34
9116
522
list = [] x = 0 y = 0 n = int(input()) for i in range(n): a,b = map(int,input().split()) list.append(a) list.append(b) for _ in range(n): if list[x] == list[x+1]: n = n - 1 if not list[x+1] == list[-1]: if list[x+2] == list[x+3]: n = n - 1 if n...
Traceback (most recent call last): File "/tmp/tmpdi02tb7q/tmpn2qmzel1.py", line 4, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s441767902
p02546
u001689394
1600547983
Python
Python (3.8.2)
py
Runtime Error
21
9228
522
list = [] x = 0 y = 0 n = int(input()) for i in range(n): a,b = map(int,input().split()) list.append(a) list.append(b) for _ in range(n): if list[x] == list[x+1]: n = n - 1 if not list[x+1] == list[-1]: if list[x+2] == list[x+3]: n = n - 1 if n...
Traceback (most recent call last): File "/tmp/tmpb1mwpf4u/tmph_5evlre.py", line 4, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s897495143
p02546
u490253811
1600547983
Python
Python (3.8.2)
py
Runtime Error
27
8936
71
S = input() if S[-1] = "s": print(S + "es") else: print(S + "s")
File "/tmp/tmpzxo2cvk_/tmpuj1gp0sw.py", line 3 if S[-1] = "s": ^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
s998297782
p02546
u463945054
1600547931
Python
Python (3.8.2)
py
Runtime Error
24
9112
264
N = int(input()) count = 0 for i in range(N): k, t = map(int, input().split()) if count == 3: print ( "yes" ) break if not k == t: count *= 0 if k == t: count += 1 if not count == 3: print ("no")
Traceback (most recent call last): File "/tmp/tmpp7ofzk5k/tmp4jykfazn.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s336500889
p02546
u592826944
1600547864
Python
PyPy3 (7.3.0)
py
Runtime Error
614
72668
2562
import sys,math try:sys.stdin,sys.stdout=open('input.txt','r'),open('out.txt','w') except:pass from sys import stdin,stdout;mod=int(1e9 + 7);from statistics import mode from collections import *;from math import ceil,floor,inf,factorial,gcd,log2,sqrt,log ii1=lambda:int(stdin.readline().strip()) is1=lambda:stdin.readlin...
Traceback (most recent call last): File "/tmp/tmpgpu8fehb/tmpqbj2gcjm.py", line 65, in <module> n,x,m= iia() ^^^^^ ValueError: not enough values to unpack (expected 3, got 0)
s039487440
p02546
u001689394
1600547834
Python
Python (3.8.2)
py
Runtime Error
27
8936
500
list = [] x = 0 y = 0 n = int(input()) for i in range(n): a,b = map(int,input().split()) list.append(a) list.append(b) for _ in range(n): if not list[x-1] == list[-1]: if list[x] == list[x+1]: if not list[x+1] == list[-1]: if list[x+2] == list[x+3]: ...
Traceback (most recent call last): File "/tmp/tmps2e35p31/tmpmil69xn4.py", line 4, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s511520241
p02546
u729679908
1600547829
Python
Python (3.8.2)
py
Runtime Error
23
9036
112
N,X,M = map(int,input().split()) S = X n = X while i < N-1: n = (n**2)%M S = S + n i = i+1 print(S)
Traceback (most recent call last): File "/tmp/tmpd26sz421/tmpq3c6xu5o.py", line 1, in <module> N,X,M = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s242175771
p02546
u511975155
1600547822
Python
Python (3.8.2)
py
Runtime Error
23
9032
192
n,x,m = map(int,input().split()) def jouken(a,waru): return a**2%waru ni = 0 num =0 for i in range(n-1): ni = x if i ==0: num+=x x = jouken(ni,m) num+=x print(num)
Traceback (most recent call last): File "/tmp/tmp72llddak/tmpt7emfrww.py", line 1, in <module> n,x,m = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s679429607
p02546
u694536861
1600547784
Python
Python (3.8.2)
py
Runtime Error
22
9164
152
N = int(input()) count = 0 for a in range(1, N): tmp = (N-1) // a if a <= (N) // 2: count += tmp else: count += 1 print(count)
Traceback (most recent call last): File "/tmp/tmp9wotcjn5/tmphog4zyum.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s307787772
p02546
u490253811
1600547781
Python
Python (3.8.2)
py
Runtime Error
22
8920
71
S = input() if S[-1] = s: print(S + "es") else: print(S + "s")
File "/tmp/tmphsq1ou3t/tmpizjvy8v6.py", line 3 if S[-1] = s: ^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
s187412761
p02546
u354862173
1600547742
Python
Python (3.8.2)
py
Runtime Error
120
26624
1610
import sys import numpy as np from math import ceil as C, floor as F, sqrt, gcd as G from collections import defaultdict as D, Counter as CNT from functools import reduce as R import heapq as HQ class Heap: def __init__(self, data, reverse=False): self.reverse = -1 if reverse else 1 self.data = [self.reverse...
Traceback (most recent call last): File "/tmp/tmpvdnvgbsc/tmp_k_oh53m.py", line 27, in <module> n, k = I() ^^^ File "/tmp/tmpvdnvgbsc/tmp_k_oh53m.py", line 23, in I def I(): return _I(S()) ^^^^^^^ File "/tmp/tmpvdnvgbsc/tmp_k_oh53m.py", line 22, in _I def _I(ss): return ...
s696179687
p02546
u092061507
1600547734
Python
Python (3.8.2)
py
Runtime Error
28
9020
399
import bisect N, K = map(int, input().split()) LR = [list(map(int, input().split())) for i in range(K)] S = set() for i in LR: for j in range(i[0], i[1]+1): S.add(j) L = sorted(list(S)) dp = [0 for i in range(N)] dp[0] = 1 for i in range(1, N): x = bisect.bisect(L, i) t = L[:x] for j in t: ...
Traceback (most recent call last): File "/tmp/tmpcy8p5umi/tmp7zzasqdn.py", line 2, in <module> N, K = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s100745551
p02546
u584153341
1600547677
Python
PyPy3 (7.3.0)
py
Runtime Error
114
68660
417
import math N = int(input()) cnt = 0 if N == 2: cnt = 1 elif N == 3: cnt = 3 elif N > 3: cnt = 3 for i in range(1,N-1): A = N-i rA = math.sqrt(A) intA = math.floor(rA) if rA == intA: cnt -= 1 if intA == 1: cnt += 1 else: ...
Traceback (most recent call last): File "/tmp/tmp72jv7iq0/tmpzeo7s3nm.py", line 3, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s492205887
p02546
u001689394
1600547606
Python
Python (3.8.2)
py
Runtime Error
28
9084
474
list = [] x = 0 y = 0 n = int(input()) for i in range(n): a,b = map(int,input().split()) list.append(a) list.append(b) for _ in range(n): if list[x] == list[x+1]: if not list[x+1] == list[-1]: if list[x+2] == list[x+3]: if not list[x+3] == list[-1]: ...
Traceback (most recent call last): File "/tmp/tmpsdyixp4f/tmpkw80rkl5.py", line 4, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s443867741
p02546
u490253811
1600547568
Python
Python (3.8.2)
py
Runtime Error
28
8868
60
if S[-1] = "s": print(S + "es") else: print(S + "s")
File "/tmp/tmpdyri_t3p/tmp1ou4r122.py", line 1 if S[-1] = "s": ^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
s689129658
p02546
u490253811
1600547533
Python
Python (3.8.2)
py
Runtime Error
28
9012
58
if S[-1] = s: print(S + "es") else: print(S + "s")
File "/tmp/tmp2m16p7p3/tmp3ci1jwik.py", line 1 if S[-1] = s: ^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
s912792989
p02546
u584153341
1600547491
Python
Python (3.8.2)
py
Runtime Error
28
9204
410
import math N = int(input()) if N == 2: cnt = 1 elif N == 3: cnt = 3 elif N > 3: cnt = 3 for i in range(1,N-1): A = N-i rA = math.sqrt(A) intA = math.floor(rA) if rA == intA: cnt -= 1 if intA == 1: cnt += 1 else: for j...
Traceback (most recent call last): File "/tmp/tmpzg41dnuz/tmply45y1_v.py", line 3, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s589359269
p02546
u809416266
1600547489
Python
Python (3.8.2)
py
Runtime Error
25
8868
67
S = list('') if ('S'[-1]) = s: print('S'+es) else: print('S'+s)
File "/tmp/tmpncni4aeq/tmpa5znn0z5.py", line 2 if ('S'[-1]) = s: ^^^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
s592552107
p02546
u728050879
1600547452
Python
Python (3.8.2)
py
Runtime Error
27
9232
444
N,X,M = map(int, input().split()) A = [-1]*(M+100) A[0] = X i = 0 tmpans = 0 flag = False check = [-1]*(M+1) slice = -1 while i< N-1: newa = A[i]**2%M i+= 1 if check[newa] != -1: flag = True slice = check[newa] break A[i] = newa check[newa] = i if not flag: print(sum(A...
Traceback (most recent call last): File "/tmp/tmpgkx0cboy/tmpwi03xgvf.py", line 1, in <module> N,X,M = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s972145719
p02546
u774959455
1600547437
Python
Python (3.8.2)
py
Runtime Error
29
9112
343
import sys N = int(input().strip()) if(N == 0): sys.exit() a = [] c =0 f = 0 for i in range(N): array = list(map(int, input().strip().split())) a.append(array) #print(a[4][1]) for i in range(N): if(f == 0 or f == i-1): if(a[i][0] == a[i][1]): f=i c+=1 else: f=0 c=0 if(c >= 3): print("Ye...
Traceback (most recent call last): File "/tmp/tmp6alyrq2f/tmpigtwv6hy.py", line 2, in <module> N = int(input().strip()) ^^^^^^^ EOFError: EOF when reading a line
s971946817
p02546
u584153341
1600547416
Python
Python (3.8.2)
py
Runtime Error
30
9036
403
import math N = int(input()) if N == 2: cnt = 1 elif N == 3: cnt = 3 elif N > 3: for i in range(1,N-1): A = N-i rA = math.sqrt(A) intA = math.floor(rA) if rA == intA: cnt -= 1 if intA == 1: cnt += 1 else: for j in ran...
Traceback (most recent call last): File "/tmp/tmpot4l79g_/tmp1nqurpu2.py", line 3, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s644362401
p02546
u865520181
1600547415
Python
Python (3.8.2)
py
Runtime Error
29
9012
95
import sys S="" S=sys.argv[1] len(S)<=1000 if S[-1] == 's': S=S+'es' else: S=S+'s' print(S)
Traceback (most recent call last): File "/tmp/tmpwz_dou3b/tmp1jiaq333.py", line 3, in <module> S=sys.argv[1] ~~~~~~~~^^^ IndexError: list index out of range
s788387603
p02546
u490253811
1600547368
Python
Python (3.8.2)
py
Runtime Error
32
8900
76
S = input() if S[-1] = "s": print(S + "es") else: print(S + "s")
File "/tmp/tmp91n0a094/tmpih8tkx57.py", line 1 S = input() ^ SyntaxError: invalid non-printable character U+3000
s178857821
p02546
u253220242
1600547326
Python
Python (3.8.2)
py
Runtime Error
32
8984
97
word = input() if word[-1] == 's': return ''.join(word, 'es') else: return ''.join(word, 's')
File "/tmp/tmpu5ipd5fv/tmpvo1x70x1.py", line 3 return ''.join(word, 'es') ^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: 'return' outside function
s340858285
p02546
u865520181
1600547246
Python
Python (3.8.2)
py
Runtime Error
24
9020
83
import sys S="" S=sys.argv[1] if S[-1] == 's': S=S+'es' else: S=S+'s' print(S)
Traceback (most recent call last): File "/tmp/tmp_l_l2ikf/tmptvo8jmew.py", line 3, in <module> S=sys.argv[1] ~~~~~~~~^^^ IndexError: list index out of range
s536145523
p02546
u865520181
1600547231
Python
Python (3.8.2)
py
Runtime Error
25
9088
83
import sys S="" S=sys.argv[1] if S[-1] == 's': S=S+'es' else: S=S+'s' print(S)
Traceback (most recent call last): File "/tmp/tmp9snlwr1m/tmpgpa2qr8y.py", line 3, in <module> S=sys.argv[1] ~~~~~~~~^^^ IndexError: list index out of range
s973527853
p02546
u589828039
1600547148
Python
Python (3.8.2)
py
Runtime Error
28
9240
627
n = int(input()) m = 2 z = 0 for i in range(n-2): def factorization(n): arr = [] temp = n for i in range(2, int(-(-n**0.5//1))+1): if temp%i==0: cnt=0 while temp%i==0: cnt+=1 temp //= i arr.a...
Traceback (most recent call last): File "/tmp/tmpz20abgar/tmpyaoj1sym.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s581052279
p02546
u490253811
1600547144
Python
Python (3.8.2)
py
Runtime Error
28
8984
76
S = input() if S[-1] = "s"; print(S + "es") else; print(S + "s")
File "/tmp/tmpf0k375b_/tmp24j3c7lh.py", line 1 S = input() ^ SyntaxError: invalid non-printable character U+3000
s776798358
p02546
u589828039
1600547111
Python
PyPy3 (7.3.0)
py
Runtime Error
111
68672
626
n = int(input()) m = 2 z = 0 for i in range(n-2): def factorization(n): arr = [] temp = n for i in range(2, int(-(-n**0.5//1))+1): if temp%i==0: cnt=0 while temp%i==0: cnt+=1 temp //= i arr.a...
Traceback (most recent call last): File "/tmp/tmprycqgpgy/tmpny7uu52v.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s642715440
p02546
u983367697
1600546989
Python
PyPy3 (7.3.0)
py
Runtime Error
133
68712
133
n,x,m = map(int,input().split()) def f(x,m): return x%m ans = 0 for i in range(n): ans += x x = f(x**2,m) print(ans)
Traceback (most recent call last): File "/tmp/tmpamnqshgi/tmpgl1l5uxo.py", line 1, in <module> n,x,m = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s858188836
p02546
u133745933
1600546708
Python
Python (3.8.2)
py
Runtime Error
25
9200
205
N = int(input()) cnt = 0 for a in range(1,N//2+1): for b in range(a,N): if N - a * b > 0: if a == b: cnt += 1 else: cnt += 2 print(cnt)
Traceback (most recent call last): File "/tmp/tmp5dpkt10x/tmp0pdys_7r.py", line 2, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s869849782
p02546
u357147881
1600546548
Python
Python (3.8.2)
py
Runtime Error
25
9020
95
l=list(S.split('')) if l[-1]=='s': l.append('es') else: l.append('s') a=''.join(l) print(a)
Traceback (most recent call last): File "/tmp/tmplv7hpq5n/tmpjshaciki.py", line 1, in <module> l=list(S.split('')) ^ NameError: name 'S' is not defined
s967267890
p02546
u013227739
1600546547
Python
Python (3.8.2)
py
Runtime Error
24
8960
61
s = input() if l[-1] == 's': s += 'es' else: s += 's'
Traceback (most recent call last): File "/tmp/tmplywcyfb4/tmpz82p6ist.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s690885254
p02546
u842033632
1600546504
Python
Python (3.8.2)
py
Runtime Error
25
8968
65
S = input() if S[-1] == s print(S + 'es') else: print(S + 's')
File "/tmp/tmpx39_szh8/tmp4zfsjh6o.py", line 2 if S[-1] == s ^ SyntaxError: expected ':'
s024067745
p02546
u587370992
1600546466
Python
PyPy3 (7.3.0)
py
Runtime Error
80
68548
606
import sys N, K = list(map(int, input().split())) MOD = 998244353 sys.setrecursionlimit(N * 3) L = [] R = [] for _ in range(K): l, r = list(map(int, input().split())) L.append(l) R.append(r) memo = [None] * (N + 1) def f(x): if x < 0: return 0 if memo[x] is None: memo[x] = _f(x)...
Traceback (most recent call last): File "/tmp/tmpv7nw2qir/tmpf387pzof.py", line 3, in <module> N, K = list(map(int, input().split())) ^^^^^^^ EOFError: EOF when reading a line
s975185806
p02546
u754511616
1600546426
Python
Python (3.8.2)
py
Runtime Error
22
9092
59
a=input() if a[-1]==s: print(a+'es') else: print(a+'s')
Traceback (most recent call last): File "/tmp/tmpndqiblfe/tmp5bsvq0oj.py", line 1, in <module> a=input() ^^^^^^^ EOFError: EOF when reading a line
s572984912
p02546
u357147881
1600546370
Python
Python (3.8.2)
py
Runtime Error
23
9040
162
while(S.isalpha()): if S.lower()==S: l=list(S.split('')) if l[-1]=='s': l.append('es') else: l.append('s') a=''.join(l) print(a)
Traceback (most recent call last): File "/tmp/tmpj1eknlch/tmpkp4s2vsv.py", line 1, in <module> while(S.isalpha()): ^ NameError: name 'S' is not defined
s507890020
p02546
u910358825
1600546311
Python
Python (3.8.2)
py
Runtime Error
23
9128
171
N=int(input()) a=1 count=0 while a<N: b=1 #print(a,b) for i in range(N//a+1): c=N-a*b if c>0: count+=1 #print(a,b,c) b+=1 a+=1 print(count)
Traceback (most recent call last): File "/tmp/tmpzgoe1sye/tmpm19_fiso.py", line 1, in <module> N=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s671205826
p02546
u244466744
1600546253
Python
Python (3.8.2)
py
Runtime Error
25
9088
83
s = input() if s[-1] != "s": s.append("s") else: s.append("es") print(s)
Traceback (most recent call last): File "/tmp/tmpiuj9c_jr/tmptx3g6nc_.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s987296588
p02546
u389530753
1600546244
Python
PyPy3 (7.3.0)
py
Runtime Error
94
68792
213
from sys import stdin input=stdin.readline n=int(input().rstrip()) count=0 for i in range(1,n): for t in range(1,n): if n-i*t>0: count +=1 else: break print(count)
Traceback (most recent call last): File "/tmp/tmppkaqs7ts/tmp0l76j__s.py", line 3, in <module> n=int(input().rstrip()) ^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''
s911398772
p02546
u777800738
1600546174
Python
Python (3.8.2)
py
Runtime Error
113
27108
489
import numpy as np num=input().split(' ') count=0 plot=np.zeros([int(num[0]),int(num[0])]) t=[] for a in range(int(num[1])): tmp=input().split(' ') t.append([int(tmp[0])+a for a in range(int(tmp[1])-int(tmp[0])+1)]) for a in range(int(num[0])): if a==0: plot[0,0]=1 else: for posit in np.where(plot[a-1]>...
Traceback (most recent call last): File "/tmp/tmpd38p0_n1/tmpv174nlle.py", line 2, in <module> num=input().split(' ') ^^^^^^^ EOFError: EOF when reading a line
s662094881
p02546
u390493770
1600545935
Python
Python (3.8.2)
py
Runtime Error
26
8936
228
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; if (s[s.size() - 1] == 's') { cout << s << "es"; } else { cout << s << "s"; } return 0; }
File "/tmp/tmp0d5ts_d2/tmpo7uvm_k4.py", line 4 using namespace std; ^^^^^^^^^ SyntaxError: invalid syntax
s186305724
p02546
u179411549
1600545658
Python
PyPy3 (7.3.0)
py
Runtime Error
80
68628
66
S = input() if S.endswith('s'): print(S+'es') else print(S+'s')
File "/tmp/tmpne9ojhxk/tmp0ddytx3_.py", line 4 else ^ SyntaxError: expected ':'
s051227810
p02546
u221272125
1600545359
Python
Python (3.8.2)
py
Runtime Error
29
9040
61
s = input() a = 's' if s[-1] == 's': a = 'es' s.append(a)
Traceback (most recent call last): File "/tmp/tmpdmh73lrs/tmp0uw_xxee.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s302560849
p02546
u071920156
1600545349
Python
PyPy3 (7.3.0)
py
Runtime Error
99
74732
187
n = int(input()) count = 0 for i in range(n - 1): c = i + 1 a_b = n - c for j in range(a_b): a = j + 1 if a_b % a == 0: count += 1 print(count)
Traceback (most recent call last): File "/tmp/tmpibyzu8dh/tmp5x49hefq.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s040781991
p02546
u187883751
1600545314
Python
Python (3.8.2)
py
Runtime Error
28
9028
105
s = input() n = len(s) for i in range(n): if s[-1] == 's': print(s+es) else: print(s+s)
Traceback (most recent call last): File "/tmp/tmp3sm7rwek/tmppz32co3v.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s897330088
p02546
u111559399
1600545295
Python
Python (3.8.2)
py
Runtime Error
23
9004
92
x= str(input()) a=list(x) l=len(a) if a[l-1]=='s': print(x+'es') else: print(x+'s')
File "/tmp/tmpnhnfgxrj/tmp8ayl3rqs.py", line 1 x= str(input()) IndentationError: unexpected indent
s553735161
p02546
u365416597
1600545213
Python
Python (3.8.2)
py
Runtime Error
25
9092
76
s = input() if s[len(s)] == 's': print(s+'es') else: print(s+'s')
Traceback (most recent call last): File "/tmp/tmpyhh244y4/tmpg00y607a.py", line 1, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s998157104
p02546
u032625182
1600545213
Python
Python (3.8.2)
py
Runtime Error
26
9164
178
import os,sys c=0 n=input() for i in range(int(n)): m=input() one=m[0] two=m[2] if(one==two): c+=1 if(c>=3): print('Yes') else: print('No')
Traceback (most recent call last): File "/tmp/tmprim0_ahc/tmpu9j38z5j.py", line 4, in <module> n=input() ^^^^^^^ EOFError: EOF when reading a line
s931640186
p02546
u809416266
1600545181
Python
Python (3.8.2)
py
Runtime Error
26
8948
61
S = '' if ('S'[-1]) = s: print('S'+es) else: print('S'+s)
File "/tmp/tmpe7dgnfmh/tmpi6hi9mew.py", line 2 if ('S'[-1]) = s: ^^^^^^^ SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
s615698896
p02546
u802781234
1600545177
Python
PyPy3 (7.3.0)
py
Runtime Error
88
74804
489
def N(): return int(input()) def L(): return list(map(int,input().split())) def NL(n): return [list(map(int,input().split())) for i in range(n)] mod = pow(10,9)+7 #import numpy #import sympy import math def divisors(n): num = 0 for i in range(1, int(math.sqrt(n) + 1)): if n % i == 0: ...
Traceback (most recent call last): File "/tmp/tmpvnxzbf9j/tmpoa7jubx6.py", line 20, in <module> n = N() ^^^ File "/tmp/tmpvnxzbf9j/tmpoa7jubx6.py", line 2, in N return int(input()) ^^^^^^^ EOFError: EOF when reading a line