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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s222239902 | p02570 | u282813849 | 1598731662 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9204 | 476 | def multmod(a,b,m):
ans = 0
a = a % m
while b:
if (b & 1): # odd
ans = (ans + a) % m
a = (2 * a) % m
b >>= 1 # b = b / 2
return ans
n = int(input())
S = [int(a) for a in input().split()]
divisor = 10**9 + 7
tot = 0
a,b = 0,0
arr_sum = sum(S) #% divisor
arr_ssq = arr_sum*arr_sum %... | Traceback (most recent call last):
File "/tmp/tmpniguqtdr/tmp0ks0dwln.py", line 14, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s517829189 | p02570 | u900776974 | 1598731658 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8868 | 102 | d,t,s=intput().split()
d=int(d)
t=int(t)
s=int(s)
d1=s*t
if d<=d1:
print("Yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmpf8krip8k/tmpgaa_9txv.py", line 1, in <module>
d,t,s=intput().split()
^^^^^^
NameError: name 'intput' is not defined. Did you mean: 'input'?
| |
s660543259 | p02570 | u482029770 | 1598731628 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9160 | 101 | D = int(input())
T = int(input())
S = int(input())
if(D/S<=T):
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmp_teqis67/tmpzyw7h6x0.py", line 1, in <module>
D = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s411617042 | p02570 | u900776974 | 1598731595 | Python | Python (3.8.2) | py | Runtime Error | 30 | 8848 | 101 | d,t,s=intput().split()
d=int(d)
t=int(t)
s=int(s)
d1=s*t
if d<=d1:
print("Yes")
else:
print("No)
| File "/tmp/tmp11zgi68y/tmp_2rra02a.py", line 9
print("No)
^
SyntaxError: unterminated string literal (detected at line 9)
| |
s632134894 | p02570 | u252405453 | 1598731584 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9240 | 926 | def abc177d():
n, m = map(int, input().split())
check = [-1] * n
pair = []
group_no = 0
group = {}
for i in range(m):
a, b = map(int, input().split())
a -= 1
b -= 1
if check[a] == check[b]:
if check[a] == -1:
group[group_no] = {a, b}
... | Traceback (most recent call last):
File "/tmp/tmp101d0nnr/tmp98t8_g2j.py", line 33, in <module>
abc177d()
File "/tmp/tmp101d0nnr/tmp98t8_g2j.py", line 2, in abc177d
n, m = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s479064874 | p02570 | u944396627 | 1598731559 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9060 | 277 | def main():
N=input()
A=list(map(int, input().split()))
mod_value = 10**9 + 7
sum_ = 0
b_sum = 0
for i in range(len(A)-1):
b_sum = b_sum + A[len(A)-i-1]
sum_ = sum_ + (A[len(A)- i - 2]*b_sum) % mod_value
print(sum_%mod_value)
main() | Traceback (most recent call last):
File "/tmp/tmpn7lx10dx/tmpkulf7env.py", line 12, in <module>
main()
File "/tmp/tmpn7lx10dx/tmpkulf7env.py", line 2, in main
N=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s347335100 | p02570 | u505493564 | 1598731526 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9244 | 858 | # union find, bfs
import sys
from collections import deque
si = sys.stdin.readline
def main():
[n, m] = [int(e) for e in si().split()]
if not m:
print(1)
return
visited = [False]*(n+1)
fm = [set() for _ in range(n+1)]
mx, comp = 0, 0
while m:
m -= 1
[a, b] = ... | Traceback (most recent call last):
File "/tmp/tmp25n7ul4f/tmpfvtx4cqf.py", line 43, in <module>
main()
File "/tmp/tmp25n7ul4f/tmpfvtx4cqf.py", line 9, in main
[n, m] = [int(e) for e in si().split()]
^^^^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s806810000 | p02570 | u153047519 | 1598731523 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9084 | 181 | n = int(input())
a = list(map(int, input().split()))
result = 0
for i in range(n):
for j in range(i + 1, n):
result += a[i] * a[j]
result = result % (10**9 + 7)
print(result)
| Traceback (most recent call last):
File "/tmp/tmp_5g_ggaa/tmpthx9jqwq.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s715446631 | p02570 | u941047297 | 1598731511 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9352 | 834 | from collections import defaultdict
def generate_primes(n):
is_prime = [True] * (n + 1)
is_prime[0] = False
is_prime[1] = False
for i in range(2, int(n**0.5) + 1):
if not is_prime[i]:
continue
for j in range(i * 2, n + 1, i):
is_prime[j] = False
return [i for ... | Traceback (most recent call last):
File "/tmp/tmpp9lb2ytd/tmpek5h1lgk.py", line 34, in <module>
main()
File "/tmp/tmpp9lb2ytd/tmpek5h1lgk.py", line 14, in main
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s888343185 | p02570 | u900776974 | 1598731495 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8968 | 73 | d,t,s=intput().split()
d1=s*t
if d<=d1:
print("Yes")
else:
print("No) | File "/tmp/tmpuy6g343y/tmp8bxo3w9i.py", line 6
print("No)
^
SyntaxError: unterminated string literal (detected at line 6)
| |
s839126615 | p02570 | u207767041 | 1598731449 | Python | PyPy3 (7.3.0) | py | Runtime Error | 87 | 68792 | 171 | n = int(input())
lst = list(map(int,input().split()))
val = 0
for i in range(len(lst)-1):
for j in range(i+1,len(lst)):
val += (lst[i]*lst[j])
print(val%((10**9)+7)) | Traceback (most recent call last):
File "/tmp/tmp7xq1nt6i/tmptsgh_zh_.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s921095919 | p02570 | u883866798 | 1598731400 | Python | Python (3.8.2) | py | Runtime Error | 22 | 8808 | 97 | D,T,S = map(input().split())
result = D / S
if T <= result :
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmpzk2hn0p0/tmplztjmbyn.py", line 1, in <module>
D,T,S = map(input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s166456179 | p02570 | u719044784 | 1598731396 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9080 | 174 | u=0
u=int(input())
A = list(map(int,input().split()))
n = len(A)
prr = 0
for i in range(n):
for j in range(i + 1, n):
prr = prr + A[i] * A[j]
print(prr)
| Traceback (most recent call last):
File "/tmp/tmprninijk_/tmp287sgama.py", line 2, in <module>
u=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s687078394 | p02570 | u337396147 | 1598731368 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9160 | 279 | from itertools import combinations
def main():
N = int(input())
A = tuple(map(int, input().split()))
answer = solve(N, A)
print(answer)
def solve(N, A):
return sum(x * y for x, y in combinations(A, 2)) % (10**9 + 7)
if __name__ == "__main__":
main()
| Traceback (most recent call last):
File "/tmp/tmpde_iyls9/tmpx7xsgpv9.py", line 15, in <module>
main()
File "/tmp/tmpde_iyls9/tmpx7xsgpv9.py", line 4, in main
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s296936130 | p02570 | u999503965 | 1598731313 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8988 | 266 | s=input()
t=input()
if len(s)==len(t):
num=0
for i,j in zip(s,t):
if i!=j:
num+=1
else:
for i in range(len(s)-len(t)+1):
a=s[i:len(t)+i]
num=0
for i,j in zip(t,a):
if i!=j:
num+=1
num=min(1000,num)
print(num)
| Traceback (most recent call last):
File "/tmp/tmpnzevrpx4/tmpi00pk4ku.py", line 1, in <module>
s=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s548100811 | p02570 | u644139801 | 1598731215 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9124 | 94 | d=int(input())
t=int(input())
s=int(input())
if t>=d/s:
print("YES")
else:
print("NO") | Traceback (most recent call last):
File "/tmp/tmp0fzd9p91/tmpiq3iglbr.py", line 1, in <module>
d=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s047749094 | p02570 | u680540873 | 1598731203 | Python | Python (3.8.2) | py | Runtime Error | 117 | 27148 | 176 | import numpy as np
N = int(input())
Sum = []
A = list(map(int, input().split()))
Sum = [A[i]*A[j] for j in range(N) for i in range(j)]
print(np.array(Sum).sum()%(1000000000+7)) | Traceback (most recent call last):
File "/tmp/tmpvs1aoyq5/tmpmqww4jlx.py", line 2, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s769674849 | p02570 | u924915048 | 1598731189 | Python | Python (3.8.2) | py | Runtime Error | 29 | 8888 | 104 | D, T, S =input().split(' ')
i = int(D/S)
if i > T:
answer = "No"
else:
answer = "Yes"
print answer
| File "/tmp/tmpxmz3d28u/tmphvktsa2f.py", line 7
print answer
^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s316619093 | p02570 | u924915048 | 1598731133 | Python | Python (3.8.2) | py | Runtime Error | 32 | 8812 | 111 | D, T, S =map(int, input().split())
i = int(D/S)
if i > T:
answer = "No"
else:
answer = "Yes"
print answer
| File "/tmp/tmp6s5kg09n/tmpg7pb57l1.py", line 7
print answer
^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s259225285 | p02570 | u283937533 | 1598731097 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8992 | 80 | D, T, S = map(int, input().split())
if D/S <= T:
print(Yes)
else:
print(No)
| Traceback (most recent call last):
File "/tmp/tmpnc9j2vjf/tmpbxtb9k1l.py", line 1, in <module>
D, T, S = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s123940835 | p02570 | u924915048 | 1598731091 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8868 | 108 | D, T, S =map(input().split(''))
i = int(D/S)
if i > T:
answer = "No"
else:
answer = "Yes"
print answer
| File "/tmp/tmpa13fz0ta/tmpdpw775p_.py", line 7
print answer
^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s701658849 | p02570 | u086138398 | 1598731054 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9188 | 601 | N,M = map(int,input().split())
edge = []
for i in range(M):
a,b = map(int,input().split())
add = []
for j in range(len(edge)):
if a in edge[j] or b in edge[j]:
edge[j].append(a)
edge[j].append(b)
add.append(j)
if len(add) == 0:
edge.append([a,b])
e... | Traceback (most recent call last):
File "/tmp/tmpjkkjcsks/tmpp_bbojj0.py", line 1, in <module>
N,M = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s016348698 | p02570 | u924915048 | 1598731009 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8848 | 103 | D, T, S =input().split('')
i = int(D/S)
if i > T:
answer = "No"
else:
answer = "Yes"
print answer
| File "/tmp/tmpa9q5lzmt/tmp8_4qac58.py", line 7
print answer
^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s133649055 | p02570 | u622293701 | 1598730993 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9004 | 24 | if(D<=S*T)
Yes
else
No | File "/tmp/tmpd6azu9jn/tmp_whzmh1w.py", line 1
if(D<=S*T)
^
SyntaxError: expected ':'
| |
s519616460 | p02570 | u935685410 | 1598730934 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9092 | 168 | N = int(input())
A = tuple(map(int,input().split()))
MOD = 10**9+7
count = 0
for i in range(N-1):
count += ((sum(A[0:i+1])%MOD)*(A[i+1]%MOD))%MOD
print(count%MOD)
| Traceback (most recent call last):
File "/tmp/tmpj87bb55q/tmpxv6u9pdy.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s858895724 | p02570 | u764066313 | 1598730902 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9240 | 684 | allsets = []
n,t = list(map(int,input().split()))
for _ in range(t):
a,b = list(map(int,input().split()))
if a < b and [a,b] not in allsets:
allsets.append([a,b])
elif b < a and [b,a] not in allsets:
allsets.append([b,a])
# print(allsets)
hmap = {}
visitedNode = {}
for a,b in allsets:
if... | Traceback (most recent call last):
File "/tmp/tmpauiv7yp_/tmpce29q4xo.py", line 2, in <module>
n,t = list(map(int,input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s981212256 | p02570 | u730747703 | 1598730850 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8988 | 85 | D, T, S = map(int, input.split())
if (D / S) <= T:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpt_dcus6k/tmpnrfn83hg.py", line 1, in <module>
D, T, S = map(int, input.split())
^^^^^^^^^^^
AttributeError: 'builtin_function_or_method' object has no attribute 'split'
| |
s978675873 | p02570 | u099006712 | 1598730780 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9152 | 211 | import itertools
n = int(input())
a = [int(x) for x in input().split()]
s = 0
for (i, j) in list(itertools.permutations(range(n), 2)):
if i >= j:
continue
s += a[i] * a[j]
print(s % 1000000007)
| Traceback (most recent call last):
File "/tmp/tmp3rhakrb3/tmph848qwk1.py", line 3, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s375096240 | p02570 | u755524167 | 1598730768 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8964 | 167 | D,T,S= [int(x) for x in input("Enter values in the range of 1 and 10000: ").split(",")] 5
if (D and T) and S <=10000 and D/S==T:
print("Yes")
else:
print("No") | File "/tmp/tmp3tm3kb18/tmpdj7338wf.py", line 1
D,T,S= [int(x) for x in input("Enter values in the range of 1 and 10000: ").split(",")] 5
^
SyntaxError: invalid syntax
| |
s089820728 | p02570 | u732963817 | 1598730768 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9472 | 347 | import math
import itertools
import functools
_ = input()
A = list(map(int, input().split()))
for a, b in itertools.combinations(A, 2):
if math.gcd(a, b) != 1:
if functools.reduce(math.gcd, A) == 1:
print('setwise coprime')
else:
print('not coprime')
break
else:
... | Traceback (most recent call last):
File "/tmp/tmpwzbg1m3r/tmpphcf0gex.py", line 5, in <module>
_ = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s610622119 | p02570 | u283937533 | 1598730763 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9148 | 80 | D, T, S = map(int, input().split())
if D /S <= T:
print(Yes)
else:
print(No) | Traceback (most recent call last):
File "/tmp/tmpgxsmtarj/tmpsw8ddx6f.py", line 1, in <module>
D, T, S = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s716377304 | p02570 | u730747703 | 1598730737 | Python | Python (3.8.2) | py | Runtime Error | 20 | 8920 | 72 | D, T, S = map(int, input.split())
print("Yes" if (D / S) <= T else "No") | Traceback (most recent call last):
File "/tmp/tmpwvpkgs_c/tmpadxb8gv3.py", line 1, in <module>
D, T, S = map(int, input.split())
^^^^^^^^^^^
AttributeError: 'builtin_function_or_method' object has no attribute 'split'
| |
s956805952 | p02570 | u198336369 | 1598730718 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9088 | 249 | n = int(input())
a = list(map(int, input().split()))
sum = 0
b = [i % (10**9+7) for i in a if i % (10**9+7) != 0]
# print(b)
for j in range(0,len(b)-1):
for k in range(j+1,len(b)):
c = b[j]*b[k]
sum = sum + c
print(sum%(10**9+7)) | Traceback (most recent call last):
File "/tmp/tmp4hrm03_7/tmpmzf0n7d5.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s006162603 | p02570 | u727051308 | 1598730712 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9172 | 174 | N = int(input())
A = input().split()
B = [0]*N
for i in range(N):
A[i] = int(A[i])
B[i] = A[i]*A[i]
print( ( ( (sum(A)*sum(A)) - sum(B) ) // 2 ) % ( 10**9 + 7 ) // 2 )
| Traceback (most recent call last):
File "/tmp/tmp_s42cn50/tmppp5sn_ql.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s835084986 | p02570 | u852790844 | 1598730655 | Python | Python (3.8.2) | py | Runtime Error | 121 | 27092 | 271 | import sys
import numpy as np
readline = sys.stdin.readline
read = sys.stdin.read
MOD = 10**9 + 7
n = int(input())
a = np.array(readline().split(), dtype=np.uint64)
r = np.cumsum(a[::-1])[::-1]
r &= MOD
x = a[:-1] * r[1:]
x %= MOD
ans = int(np.sum(x) % MOD)
print(ans)
| Traceback (most recent call last):
File "/tmp/tmpy5q6kp2m/tmp9casl1p7.py", line 8, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s198678627 | p02570 | u893661063 | 1598730653 | Python | Python (3.8.2) | py | Runtime Error | 34 | 9028 | 284 | S = str(input())
T = str(input())
ans = 10000
for i in range(len(S)-len(T)+1):
c = S[i:]
cnt = 0
for j in range(len(T)):
if str(T[j]) != str(c[j]):
cnt += 1
if cnt = 0:
ans = 0
elif ans > cnt and cnt >=1:
ans = cnt
print (ans) | File "/tmp/tmpxa_u609x/tmpeu8llqmi.py", line 10
if cnt = 0:
^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s626025085 | p02570 | u893661063 | 1598730617 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8964 | 282 | S = str(input())
T = str(input())
ans = 10000
for i in range(len(S)-len(T)+1):
c = S[i:]
cnt = 0
for j in range(len(T)):
if str(T[j]) != str(c[j]):
cnt += 1
if cnt = 0:
ans = 0
if ans > cnt and cnt >=1:
ans = cnt
print (ans) | File "/tmp/tmp9vusdsw1/tmpgcd9l144.py", line 10
if cnt = 0:
^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s017368979 | p02570 | u304602561 | 1598730597 | Python | PyPy3 (7.3.0) | py | Runtime Error | 936 | 79040 | 8966 | # ===============================================================================================
# importing some useful libraries.
from __future__ import division, print_function
from fractions import Fraction
import sys
import os
from io import BytesIO, IOBase
from itertools import *
import bisect
from heapq import ... | Traceback (most recent call last):
File "/tmp/tmp7ft8o6b4/tmppwjm8j1z.py", line 289, in <module>
n=int(inp())
^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
| |
s954967873 | p02570 | u177388368 | 1598730592 | Python | PyPy3 (7.3.0) | py | Runtime Error | 106 | 68568 | 472 | n,m=list(map(int,input().split()))
par=[i for i in range(n)]
ro=dict(int)
for i in range(n):
ro[i]=1
def root(i):
if par[i]==i:
return i
else:
return root(par[i])
def unite(x,y):
rx=root(x)
ry=root(y)
if rx!=ry:
par[rx]=ry
ro[ry]+=ro[rx]
ro[rx]=0
for i i... | Traceback (most recent call last):
File "/tmp/tmph11dn62b/tmpxegk_0yo.py", line 1, in <module>
n,m=list(map(int,input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s145360737 | p02570 | u213314609 | 1598730591 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8976 | 84 | D, T, S = map(int, input()).split()
if T*S <= D:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmpgumqdeui/tmpk8pmsdlj.py", line 1, in <module>
D, T, S = map(int, input()).split()
^^^^^^^
EOFError: EOF when reading a line
| |
s914305017 | p02570 | u811535874 | 1598730578 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9196 | 232 | n = int(input())
a = list(map(int, input().split()))
total = 0
for i in range(n - 1):
temp = []
for j in range(i + 1, n):
temp.append((a[i]*a[j]) % (10**9 + 7))
total += sum(temp) % (10**9 + 7)
print(total % (10**9 + 7)) | Traceback (most recent call last):
File "/tmp/tmpl_3jmzkn/tmp686laeg_.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s246943994 | p02570 | u875584014 | 1598730576 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9176 | 163 | N=int(input())
lst=list(map(int,input().split()))
A=0
for i in range(N-1):
for j in range(i+1,N):
A+=(lst[i]%(10**9+7))*(lst[j]%(10**9+7))
print(A%(10**9+7)) | Traceback (most recent call last):
File "/tmp/tmp6sr1evy3/tmpihwvyb0w.py", line 1, in <module>
N=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s029100700 | p02570 | u899782392 | 1598730554 | Python | PyPy3 (7.3.0) | py | Runtime Error | 93 | 74800 | 761 | import math
N = int(input())
A = list(map(int, input().split()))
def calc_primes(n):
data = [i for i in range(2, n + 1)]
for d in data:
data = [x for x in data if (x == d or x % d != 0)]
return data
# primes = calc_primes(int(math.sqrt(10**6))) ... | Traceback (most recent call last):
File "/tmp/tmp0_oz1_ch/tmpz28d14di.py", line 2, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s590522224 | p02570 | u183432736 | 1598730546 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9068 | 361 | S = str(input())
T = str(input())
tempcount = 0
mincount = 0
if S in T:
print("0")
exit
for i in range(len(S) - len(T)+1):
for j in range(len(T)):
if S[i + j] != T[j]:
tempcount += 1
if i == 0:
mincount = tempcount
elif tempcount < mincount:
mincount = tempcount... | Traceback (most recent call last):
File "/tmp/tmp9atb4vic/tmp4l997vyc.py", line 1, in <module>
S = str(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s872388445 | p02570 | u919519672 | 1598730527 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9088 | 396 | def probB():
S = input()
T = input()
maxequal = 0
for i in range(len(S) - len(T)):
count = 0
for j in range(len(T)):
if S[i + j] == T[j]:
count += 1
if (count > maxequal):
maxequal = count
print(len(T) - maxequal if maxequal > ... | Traceback (most recent call last):
File "/tmp/tmp6i_o6zzd/tmpatvm7968.py", line 21, in <module>
main()
File "/tmp/tmp6i_o6zzd/tmpatvm7968.py", line 17, in main
probB()
File "/tmp/tmp6i_o6zzd/tmpatvm7968.py", line 2, in probB
S = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s725139844 | p02570 | u777800738 | 1598730505 | Python | Python (3.8.2) | py | Runtime Error | 116 | 27152 | 194 | import numpy as np
n=int(input())
t=np.array(input().split(' '))
num=np.zeros(n)
for a in range(n):
num[a]=int(t[a])
a=np.sum(num)**2
b=np.sum(num**2)
x=int((a-b)/2)
x=(x-1)%(10**9+7)
print(x) | Traceback (most recent call last):
File "/tmp/tmp1gm95swm/tmp89egkj6y.py", line 2, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s795763502 | p02570 | u511899838 | 1598730499 | Python | Python (3.8.2) | py | Runtime Error | 176 | 37400 | 464 | import numpy as np
from scipy.sparse.csgraph import connected_components
from scipy.sparse import csr_matrix
import collections
N, M = map(int, input().split())
edge = np.array([input().split() for _ in range(M)], dtype=np.int8).T
if M == 0:
print(1)
else:
tmp = np.ones(M, dtype=np.int8).T
graph = csr_ma... | Traceback (most recent call last):
File "/tmp/tmp8h5agoj6/tmpl7tkao9w.py", line 6, in <module>
N, M = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s290690463 | p02570 | u243733932 | 1598730488 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9080 | 317 | def main():
N = int(input())
As = list(map(int, input().split()))
sum_ = 0
for i in range(N - 1):
for j in range(i + 1, N):
sum_ += ((As[i] % (10 ** 9 + 7)) * (As[j] % (10 ** 9 + 7))) % (10 ** 9 + 7)
sum_ %= 10 ** 9 + 7
print(sum_)
if __name__ == '__main__':
main() | Traceback (most recent call last):
File "/tmp/tmpf1kb7x79/tmpivssbnp4.py", line 15, in <module>
main()
File "/tmp/tmpf1kb7x79/tmpivssbnp4.py", line 2, in main
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s268585882 | p02570 | u283937533 | 1598730470 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9060 | 81 | D, T, S = map(int, input().split())
if D / S <= T:
print(Yes)
else:
print(No) | Traceback (most recent call last):
File "/tmp/tmphbbp2dx_/tmp62d33f_r.py", line 1, in <module>
D, T, S = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s342382185 | p02570 | u875584014 | 1598730461 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9112 | 163 | N=int(input())
lst=list(map(int,input().split()))
A=0
for i in range(N-1):
for j in range(i+1,N):
A+=(lst[i]%(10**9+7))*(lst[j]%(10**9+7))
print(A%(10**9+7)) | Traceback (most recent call last):
File "/tmp/tmpo_8ic9o7/tmpciiwtx0z.py", line 1, in <module>
N=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s384180195 | p02570 | u398721438 | 1598730439 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8996 | 339 | import java.util.*;
public class A
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int d = sc.nextInt();
int t = sc.nextInt();
int s = sc.nextInt();
float tdash = d/s;
if (tdash > (float)t)
System.out.println("No");
else
System.out.pri... | File "/tmp/tmp865_9en0/tmpo2y1m_m7.py", line 1
import java.util.*;
^
SyntaxError: invalid syntax
| |
s649768967 | p02570 | u777800738 | 1598730434 | Python | Python (3.8.2) | py | Runtime Error | 114 | 27136 | 182 | import numpy as np
n=int(input())
t=input().split(' ')
num=np.zeros(n)
for a in range(n):
num[a]=int(t[a])
a=np.sum(num)**2
b=np.sum(num**2)
x=int((a-b)/2)
x=x%(10**9+7)-1
print(x) | Traceback (most recent call last):
File "/tmp/tmp_3l216mq/tmp2qtr0t5y.py", line 2, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s144344030 | p02570 | u158587446 | 1598730423 | Python | PyPy3 (7.3.0) | py | Runtime Error | 109 | 68508 | 130 | i = input().split()
d = i[0]
t = i[1]
s = i[2]
dt = i[0] / i[2]
lt = i[1]
if dt <= lt:
print('Yes')
else:
print('No') | File "/tmp/tmp4cwri47z/tmpah0l0yv1.py", line 12
else:
^
IndentationError: unindent does not match any outer indentation level
| |
s457664478 | p02570 | u336979293 | 1598730390 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8992 | 92 |
d,t,s = map(int,input().split())
if (d − s*t <= 0):
print('Yes')
else :
print('No')
| File "/tmp/tmpbd8c94og/tmpr2nxvrlm.py", line 4
if (d − s*t <= 0):
^
SyntaxError: invalid character '−' (U+2212)
| |
s783880942 | p02570 | u362576692 | 1598730319 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9160 | 110 | D = int(input())
T = int(input())
S = int(input())
res = D/S
if(res<=T):
print("Yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmpvjw44fct/tmp32mdj9sb.py", line 1, in <module>
D = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s418218459 | p02570 | u185851743 | 1598730288 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9080 | 46 | if S*T > D:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmpvbjanrr2/tmp_gog190f.py", line 1, in <module>
if S*T > D:
^
NameError: name 'S' is not defined
| |
s599173431 | p02570 | u438720156 | 1598730274 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9016 | 71 | d,t,s=input().split()
x=d/s
if x<=t:
print("Yes")
else:
print("No)
| File "/tmp/tmp_hhkia18/tmp7tee3t9c.py", line 6
print("No)
^
SyntaxError: unterminated string literal (detected at line 6)
| |
s278577535 | p02570 | u755524167 | 1598730217 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9172 | 267 | D=int(input("Enter a number in the range of 0 and 10000 10000: "))
T=int(input("Enter a number in the range of 0 and 10000: "))
S=int(input("Enter a number in the range of 0 and 10000: "))
if (D and T) and S <=10000 and D/S==T:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmp7zx05eeo/tmprmz5t_z7.py", line 1, in <module>
D=int(input("Enter a number in the range of 0 and 10000 10000: "))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
EOFError: EOF when reading a line
| Enter a number in the range of 0 and 10000 10000: |
s624627707 | p02570 | u438720156 | 1598730154 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9052 | 79 | d,t,s=map(int,input().split())
x=d/s
if x<=t:
print("Yes")
else:
print("No) | File "/tmp/tmpim5_efrz/tmpdwnz1pgo.py", line 6
print("No)
^
SyntaxError: unterminated string literal (detected at line 6)
| |
s122908031 | p02570 | u956910277 | 1598730116 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9092 | 91 | d,t,s = list( map( int , input().split() ))
if d <= t*s:
return "Yes"
else:
return "No" | File "/tmp/tmptty1gdx3/tmpy8n83tcu.py", line 3
return "Yes"
^^^^^^^^^^^^
SyntaxError: 'return' outside function
| |
s753415897 | p02570 | u362576692 | 1598730094 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9132 | 117 | D = int(input())
T = int(input())
S = int(input())
res = float(D/S)
if(res<=T):
print("Yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmpf_ez3qs0/tmpaw74jo78.py", line 1, in <module>
D = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s189196664 | p02570 | u644139801 | 1598730017 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8988 | 73 | d,t,s=map(int,input(.split())
if d/s<=t:
print("YES")
else:
print("NO") | File "/tmp/tmp55ccl2ic/tmpwq8up7ao.py", line 1
d,t,s=map(int,input(.split())
^
SyntaxError: invalid syntax
| |
s478624530 | p02570 | u794406065 | 1598730010 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9008 | 98 | info=input().split()
D=info[0]
S=info[1]
T=info[2]
if D/S<=T:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmp2e6eozb2/tmp695w_38i.py", line 1, in <module>
info=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s957157138 | p02570 | u944396627 | 1598729970 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9032 | 220 | def main():
N=input()
A=list(map(int, input().split()))
mod_value = 10**9 + 7
sum_ = 0
for i in range(len(A)-1):
sum_ = sum_ + A[i]*sum(A[i+1:]) % mod_value
print(sum_ % mod_value)
main() | Traceback (most recent call last):
File "/tmp/tmpiris9zd7/tmp44wc_e69.py", line 10, in <module>
main()
File "/tmp/tmpiris9zd7/tmp44wc_e69.py", line 2, in main
N=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s498866059 | p02570 | u804613609 | 1598729962 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9096 | 114 | inp_ = input()
imp_list = imp_.spilt()
if inp_list[0] / inp_list[1] <= 80:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmptok8sokz/tmpfd2or_4x.py", line 1, in <module>
inp_ = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s172939453 | p02570 | u806988802 | 1598729954 | Python | Python (3.8.2) | py | Runtime Error | 29 | 8968 | 210 | n = input()
a_list = input().split(" ")
b = [int(a) for a in a_list]
max = 10**9 + 7
sum = 0
for i in range(0, len(b)-1):
for j in range(i+1, len(b)):
sum += b[i] * b[j]
sum = sum % max
print(sum)
| Traceback (most recent call last):
File "/tmp/tmphbv_30yq/tmp9zbbdn9t.py", line 1, in <module>
n = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s058896473 | p02570 | u804613609 | 1598729918 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9020 | 102 | inp_list = input().spilt()
if inp_list[0] / inp_list[1] <= 80:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpj0g0hfnf/tmpgeffk7et.py", line 1, in <module>
inp_list = input().spilt()
^^^^^^^
EOFError: EOF when reading a line
| |
s223775810 | p02570 | u804613609 | 1598729812 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9084 | 104 | inp_list = input().spilt()
if (inp_list[0] / inp_list[1]) <= 80:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmp7afqibr7/tmpvoslfdsc.py", line 1, in <module>
inp_list = input().spilt()
^^^^^^^
EOFError: EOF when reading a line
| |
s279720989 | p02570 | u364091522 | 1598729778 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9016 | 59 | D = 3000
T = 5
S = 600
print("T * S = D" + str(T * S = D)) | File "/tmp/tmpfjs9ni34/tmp9gblhsf1.py", line 5
print("T * S = D" + str(T * S = D))
^^^^^^^
SyntaxError: expression cannot contain assignment, perhaps you meant "=="?
| |
s372764635 | p02570 | u878739773 | 1598729758 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9156 | 135 | d=int(input())
t=int(input())
s=int(input())
if s!=0:
tm=d/s
else:
tm=t+1
if tm<=t:
print("Yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmpq7cf7i6g/tmpjnkmsm2q.py", line 1, in <module>
d=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s394978957 | p02570 | u364091522 | 1598729734 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9092 | 60 | D = 3000
T = 5
S = 600
print("T * S = D" + str(T * S))
Yes | Traceback (most recent call last):
File "/tmp/tmpz1nkgi4b/tmpzctekq6m.py", line 7, in <module>
Yes
NameError: name 'Yes' is not defined
| T * S = D3000
|
s964534179 | p02570 | u364091522 | 1598729716 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9036 | 66 | D = 3000
T = 5
S = 600
print("T * S = D" + str(T * S = D))
"Yes" | File "/tmp/tmpsop2_hp5/tmphjqcip51.py", line 5
print("T * S = D" + str(T * S = D))
^^^^^^^
SyntaxError: expression cannot contain assignment, perhaps you meant "=="?
| |
s883552980 | p02570 | u343545816 | 1598729701 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9092 | 85 | d,t,s = input().split()
time = d/s
if time <= t:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmp2w375yfp/tmp0m6oxqfl.py", line 1, in <module>
d,t,s = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s875059630 | p02570 | u336979293 | 1598729644 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8852 | 104 | d = int(input())
t,s = map(int,input().split())
if d − s*t <= 0:
print('Yes')
else :
print('No')
| File "/tmp/tmppqhvllhj/tmpmje4nn6u.py", line 4
if d − s*t <= 0:
^
SyntaxError: invalid character '−' (U+2212)
| |
s119150487 | p02570 | u755524167 | 1598729626 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9148 | 325 | D=int(input("Enter a number in the range of 0 and 10000: "))
T=int(input("Enter a number in the range of 0 and 10000: "))
S=int(input("Enter a number in the range of 0 and 10000: "))
def DontBeLate(D,T,S):
if (D and T) and S <=10000 and D/S==T:
print("Yes")
else:
print("No")
(DontBeLate(D,T... | Traceback (most recent call last):
File "/tmp/tmprv0w356p/tmpz34y75vk.py", line 1, in <module>
D=int(input("Enter a number in the range of 0 and 10000: "))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
EOFError: EOF when reading a line
| Enter a number in the range of 0 and 10000: |
s240100367 | p02570 | u347502437 | 1598729589 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9180 | 218 | N = int(input())
A = list(input().split())
B = [int(a) for a in A]
x = 10**9+7
summation = 0
for i in range(N-1):
for j in range(i+1,N):
summation += (B[i] * B[j])
summation % x
print(summation % x) | Traceback (most recent call last):
File "/tmp/tmp1w81qnih/tmpx9gvok_2.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s285048519 | p02570 | u878739773 | 1598729583 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9164 | 135 | d=int(input())
t=int(input())
s=int(input())
if s!=0:
tm=d/s
else:
tm=t+1
if tm<=t:
print("Yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmptxxb3qjk/tmp3hw1nlxc.py", line 1, in <module>
d=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s770045272 | p02570 | u336979293 | 1598729581 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9036 | 100 | d = int(input())
t,s = map(int,input().split())
if d − s*t <= 0:
print('Yes')
else print('No')
| File "/tmp/tmpfmi0geio/tmpe4tfpmgi.py", line 4
if d − s*t <= 0:
^
SyntaxError: invalid character '−' (U+2212)
| |
s912014587 | p02570 | u101232733 | 1598729571 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9184 | 193 | n= int(input())
aas= list(map(int, input().split(' ')))
ans=0
for i in range(n-1):
for j in range(i+1, n):
ans+= aas[i]*aas[j]
if ans>(10**9+7):
ans= ans% (10**9+7)
print(ans) | Traceback (most recent call last):
File "/tmp/tmpvzodp4jq/tmph9xo3hlq.py", line 1, in <module>
n= int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s068682707 | p02570 | u794406065 | 1598729511 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8996 | 45 | if D/S<=T:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmp2bgqd3tf/tmpndhtyjmt.py", line 1, in <module>
if D/S<=T:
^
NameError: name 'D' is not defined
| |
s223276428 | p02570 | u430928274 | 1598729484 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8940 | 92 | d, t, s = map(int, input().split())
if d =< t * s :
print("Yes")
else :
print("No") | File "/tmp/tmpzco5dn_3/tmpvyyzlgtd.py", line 2
if d =< t * s :
^
SyntaxError: invalid syntax
| |
s400169292 | p02570 | u336979293 | 1598729446 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9008 | 101 | d = input().split()
t,s = map(int,input().split())
if d − s*t < 0:
print('Yes')
else print('No') | File "/tmp/tmpk2w63irr/tmp52844kx4.py", line 4
if d − s*t < 0:
^
SyntaxError: invalid character '−' (U+2212)
| |
s573330347 | p02570 | u794406065 | 1598729438 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9024 | 73 | total_minute=D/S
if total_minute<=T:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpuvsogkq4/tmpe4kol147.py", line 1, in <module>
total_minute=D/S
^
NameError: name 'D' is not defined
| |
s258929225 | p02570 | u878739773 | 1598729432 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9056 | 106 | d=int(input())
t=int(input())
s=int(input())
tm=d/s;
if tm<=t:
print("Yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmpt7mtkwk3/tmpbnwmjfqe.py", line 1, in <module>
d=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s111575357 | p02570 | u911211665 | 1598729406 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9020 | 137 | li = input().split()
print(li)
d = int(li[0])
t = int(li[1])
s = int(li[2])
if(d/s >= t):
print("Yes")
if else(d/s < t):
print("No") | File "/tmp/tmpddwbi79k/tmpd7_m7zf2.py", line 9
if else(d/s < t):
^^^^
SyntaxError: invalid syntax
| |
s648750600 | p02570 | u683530136 | 1598729402 | Python | Python (3.8.2) | py | Runtime Error | 32 | 8880 | 302 | import math
# input d:距離(メートル) , t:待ち合わせまで何分 , s:速度(分速sメートル)
d, t, s = map(int, input().split())
output = "";
if d/s >= s:
if math.ceil(d/s) = s:
output = "Yes"
else:
output = "No"
else:
output = "Yes"
print(output)
| File "/tmp/tmpo57y98v5/tmp9eftcpco.py", line 9
if math.ceil(d/s) = s:
^^^^^^^^^^^^^^
SyntaxError: cannot assign to function call here. Maybe you meant '==' instead of '='?
| |
s132357510 | p02570 | u235053098 | 1598729397 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9152 | 283 | import sys
input = sys.stdin.readline
num = int(input())
an = list(map(int, input().split()))
ans = 0
for i in range(len(an)):
for j in range(len(an)):
if i < j:
kake = an[i] * an[j]
kake %= ((10 ** 9) + 7)
ans += kake
ans %= ((10 ** 9) + 7)
print(ans) | Traceback (most recent call last):
File "/tmp/tmpu1gs9ysz/tmp0k5y8m6v.py", line 4, in <module>
num = int(input())
^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
| |
s419774595 | p02570 | u272975200 | 1598729383 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9060 | 85 | d=input
t=input
s=input
x=t*s
y=d-x
if y<=0:
print("yes")
else:
print("no")
| Traceback (most recent call last):
File "/tmp/tmp2vy1dhv3/tmpmuldi6gf.py", line 4, in <module>
x=t*s
~^~
TypeError: unsupported operand type(s) for *: 'builtin_function_or_method' and 'builtin_function_or_method'
| |
s251699349 | p02570 | u794406065 | 1598729378 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8952 | 70 | total_minute=D/S
if total_minute<=T:
print("Yes")
else:
print("No | File "/tmp/tmpijt4kbjf/tmphda291q0.py", line 6
print("No
^
SyntaxError: unterminated string literal (detected at line 6)
| |
s210622127 | p02570 | u643426419 | 1598729362 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9160 | 178 | # -*- coding: utf-8 -*-
N= int(input())
A= list(map(int,input().split(' ')))
ans = 0
for i in range(len(A)-1):
for j in range(i+1, len(A)):
ans += A[i]*A[j]
print(ans)
| Traceback (most recent call last):
File "/tmp/tmpbnkpkjn6/tmppn88bb0l.py", line 2, in <module>
N= int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s320199857 | p02570 | u665090185 | 1598729108 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9192 | 173 | D = int(input())
T = int(input())
S = int(input())
if D <= 10000 or T <= 10000 or S <= 10000:
A = D / S
if A <= T:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpopab8yrc/tmpg5q7r4q0.py", line 1, in <module>
D = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s562579270 | p02570 | u790970861 | 1598729091 | Python | Python (3.8.2) | py | Runtime Error | 34 | 9104 | 108 | s = input()
D = float(s[0])
T = float(s[1])
S = float(s[2])
if (D > T * S):
print("No")
else:
print("Yes") | Traceback (most recent call last):
File "/tmp/tmp0_yidkxr/tmpvr5ybu6c.py", line 1, in <module>
s = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s362962541 | p02570 | u536866787 | 1598729055 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9152 | 85 | d, t, s = list(map(int, input()))
if (s * t >= d):
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmp5p1m7kf2/tmpjt3bs6gq.py", line 1, in <module>
d, t, s = list(map(int, input()))
^^^^^^^
EOFError: EOF when reading a line
| |
s004366976 | p02570 | u293917550 | 1598729035 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9112 | 109 | d,t,s = list(map(int,input().split()))
times = distance/speed
if times<=t:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpqwtk6jm6/tmphm66d569.py", line 1, in <module>
d,t,s = list(map(int,input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s323497547 | p02570 | u182106353 | 1598729002 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9144 | 132 | D=int(input())
T=int(input())
S=int(input())
actualTime = int(D/S)
if(actualTime<=T):
print ("Yes")
else:
print ("No")
| Traceback (most recent call last):
File "/tmp/tmpmb0kgzhn/tmptvfo9g05.py", line 1, in <module>
D=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s737679038 | p02570 | u284854859 | 1598728976 | Python | PyPy3 (7.3.0) | py | Runtime Error | 127 | 68624 | 970 | import sys
from math import gcd
input = sys.stdin.buffer.readline
n = int(input())
a = list(map(int,input().split()))
def primes(n):
ass = []
is_prime = [True] * (n + 1)
is_prime[0] = False
is_prime[1] = False
for i in range(2, int(n**0.5) + 1):
if not is_prime[i]:
continue
... | Traceback (most recent call last):
File "/tmp/tmpnvdkwxsk/tmpj6_2b0iv.py", line 5, in <module>
n = int(input())
^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: b''
| |
s860022470 | p02570 | u364091522 | 1598728948 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9056 | 12 | 5000 1 1
No | File "/tmp/tmpjtpkmcgz/tmp3_hnpr2l.py", line 1
5000 1 1
^
SyntaxError: invalid syntax
| |
s965520226 | p02570 | u856398397 | 1598728931 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8852 | 199 | class Solution:
def solve(self, D, T, S):
time = D/S
if time <= T:
return True
else:
return False
A = Solution()
D,T,S = map(int, input().split())
print(A.solve(D,T,S)
| File "/tmp/tmpmdnsckqt/tmp2ycuid6a.py", line 11
print(A.solve(D,T,S)
^
SyntaxError: '(' was never closed
| |
s108585992 | p02570 | u183149151 | 1598728899 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9156 | 129 | i = list(map(int,input().split()))
i[0] = d
i[1] = t
i[2] = s
sum = d / s
if sum < t:
print("Yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmpq817kty5/tmp0tzf5edb.py", line 1, in <module>
i = list(map(int,input().split()))
^^^^^^^
EOFError: EOF when reading a line
| |
s343380123 | p02570 | u349489051 | 1598728896 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9020 | 85 | d=int(input)
t=int(input)
s=int(input)
if d/s <=t:print("yes")
else:print("no")
| Traceback (most recent call last):
File "/tmp/tmpsgxmjqyd/tmpxpvjsvl_.py", line 1, in <module>
d=int(input)
^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.