s_id
stringlengths
10
10
p_id
stringlengths
6
6
u_id
stringlengths
10
10
date
stringlengths
10
10
language
stringclasses
1 value
original_language
stringclasses
11 values
filename_ext
stringclasses
1 value
status
stringclasses
1 value
cpu_time
stringlengths
1
5
memory
stringlengths
1
7
code_size
stringlengths
1
6
code
stringlengths
1
539k
s346480137
p03555
u089230684
1584766573
Python
Python (3.4.3)
py
Runtime Error
18
2940
89
m = input().split() a = m[0] if a[::-1] == m[1]: print("YES") else: print("NO")
s700849131
p03555
u353919145
1584766462
Python
Python (3.4.3)
py
Runtime Error
17
2940
90
m = input().splilt() a = m[0] if a[::-1] == m[1]: print("YES") else: print("NO")
s092375814
p03555
u863370423
1584764185
Python
Python (3.4.3)
py
Runtime Error
17
2940
123
a= (input()) b=(input()) if(a[0]==b[2] &&a[1] ==b[1] && a[2] ==b[0] ): print("Yes") else: print ("No" )
s193938999
p03555
u353919145
1584762949
Python
Python (3.4.3)
py
Runtime Error
17
2940
157
a=list(map(input(). split() ) ) b=list(map(input(). split() ) ) if(a[0]==b[2]&&a[1] ==b[1] & & a[2] ==b[0] ): print ("Yes" ) else: print("No" )
s939414126
p03555
u353919145
1584762836
Python
Python (3.4.3)
py
Runtime Error
17
2940
119
a=list(map(input(). split() ) ) if(a[0]==a[5]&&a[1] ==a[4] & & a[2] ==a[3] ): print ("Yes" ) else: print("No" )
s986392694
p03555
u816631826
1584761109
Python
Python (3.4.3)
py
Runtime Error
17
2940
112
a=list (map(input()) ) if(a[0]==a[5] &&a[1]==a[4]&&a[2]==a[3]): print("Yes" ) else: print("No")
s029485352
p03555
u353919145
1584760388
Python
Python (3.4.3)
py
Runtime Error
17
2940
292
#include<string> #include<iostream> using namespace std; int main () { string r1,r2; cin >> r1; cin >> r2; // A B C // D E F // Rotate 180 Degrees // FED, CBA? if (r2[2] == r1[0] && r2[1] == r1[1] && r2[0] == r1[2]) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
s882436782
p03555
u089230684
1584760171
Python
Python (3.4.3)
py
Runtime Error
17
2940
227
a=[] a[1]=[] a[2]=[] for i in range (3): a[1].append(input()) for i in range (3): a[2].append(input()) for i in range (3): if a[1][i]!=a[2][2-i]: print("NO") break else: if i==2: print("YES") continue
s823003281
p03555
u741144749
1584417311
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
x,y,z = map(int, input().split()) ret = (x-z)//(y+z) print(ret)
s709904108
p03555
u163874353
1584312997
Python
Python (3.4.3)
py
Runtime Error
18
2940
129
l = input().split() m = input().split() if l[0] == m[2] and l[2] == m[2] and l[1] == l[0]: print("Yes") else: print("No")
s093600474
p03555
u137808818
1583691102
Python
Python (3.4.3)
py
Runtime Error
18
2940
34
n = int(input()) print(int(n**.5))
s596641148
p03555
u580404776
1582720640
Python
Python (3.4.3)
py
Runtime Error
18
2940
56
S=input() T=input() pront('YES' if S==T[::-1] else 'NO')
s049676440
p03555
u992910889
1582499220
Python
Python (3.4.3)
py
Runtime Error
19
3064
98
C=[list(input()) for i in range(2)] if C[0]==reverse(C[1]): print('YES') else: print('NO')
s674885646
p03555
u287920108
1582184325
Python
Python (3.4.3)
py
Runtime Error
17
2940
86
C1 = input() C2 = input() C1_r = C1[2] + C1[1] + C1[0] C1_r print('YES' iC1 = input()
s639025665
p03555
u287920108
1582184072
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
C1,C2 = input().split() C1_reverse = C1[2] + C1[1] + C[0] print('YES' if C1_reverse == C2 else 'NO')
s893834247
p03555
u217627525
1582095449
Python
Python (3.4.3)
py
Runtime Error
17
2940
84
c1=input() c2=input() c2.reverse() if c1==c2: print("YES") else: print("No")
s282188128
p03555
u578647703
1582051547
Python
Python (3.4.3)
py
Runtime Error
17
2940
156
C1 = input() C2 = input() C1s = sorted(C1, reversed=True) C2s = sorted(C2, reversed=True) if C1s == C2 and C2s == C1: print("YES") else: print("NO")
s201363249
p03555
u752552310
1581422436
Python
Python (3.4.3)
py
Runtime Error
18
2940
132
c1, c2, c3 = input().split() c4, c5, c6 = input().split() if c1 == c6 and c2 == c5 and c3 == c4: print("YES") else: print("NO")
s977758715
p03555
u113971909
1581338740
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
a=input() b=input() ret='YES' for i in range(3): if a[i]!=b[2-i] ret='NO' break print(ret)
s519918498
p03555
u918601425
1581302881
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
import math x=int(input()) print(int(math.sqrt(x))**2)
s470345197
p03555
u120564432
1581132271
Python
Python (3.4.3)
py
Runtime Error
17
2940
121
a,b,c=map(int,input().split()) d,e,f=map(int,input().split()) ans="NO" if a==f and b==e and c==d: ans="YES" print(ans)
s115368685
p03555
u120564432
1581132169
Python
Python (3.4.3)
py
Runtime Error
17
3060
120
a,b,c=map(str,input().split()) d,e,f=map(str,input().split()) ans="NO" if a==f and b==e and c==d: ans="YES" print(ans)
s078877553
p03555
u553070631
1580618431
Python
Python (3.4.3)
py
Runtime Error
17
2940
166
n=int(input()) for i in range(0,n): if n==1 or n==2: print(n) break if n>=i*i: pass else: print((i-1)*(i-1)) break
s164035837
p03555
u905582793
1580071691
Python
Python (3.4.3)
py
Runtime Error
21
3316
350
from collections import deque n = int(input()) mins = [1000 for i in range(n+1)] used = [0 for i in range(n+1)] deq = deque() deq.append((1,1)) while deq: x,cnt = deq.popleft() mins[x] = min(mins[x],cnt) used[x] = 1 if used[10*x%n] == 0: deq.appendleft((10*x%n,cnt)) if used[(x+1)%n] == 0: deq.append((...
s864756031
p03555
u686036872
1580015251
Python
Python (3.4.3)
py
Runtime Error
17
3064
119
A=input().split() B=input().split() if A[0]==B[2] and A[1]==B[1] and A[2]==B[2]: print("YES") else: print("NO")
s651470890
p03555
u287880059
1579380607
Python
Python (3.4.3)
py
Runtime Error
17
2940
60
s = input() i = input() print("YES" if s==t[::-1] else "NO")
s921903521
p03555
u058592821
1578594341
Python
Python (3.4.3)
py
Runtime Error
17
2940
146
a, b, c = (i for i in input().split()) d, e, f = (i for i in input().split()) if a == f and b == e and c == d: print('YES') else: print('NO')
s520897162
p03555
u058592821
1578594208
Python
Python (3.4.3)
py
Runtime Error
17
3064
156
a, b, c = (int(i) for i in input().split()) d, e, f = (int(i) for i in input().split()) if a == f and b == e and c == d: print('YES') else: print('NO')
s408784377
p03555
u668352391
1578023368
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
c1 = input() c2 = input() if c1 == c[2]+c[1]+c[0]: print('YES') else: print('NO')
s793149578
p03555
u652569315
1577989391
Python
Python (3.4.3)
py
Runtime Error
18
2940
99
c1=input() c2=input() if c1[0]==c2[2],c1[1]==c2[1],c1[2]==c2[0]: print('Yes') else: print('No')
s023900830
p03555
u374146618
1577035035
Python
Python (3.4.3)
py
Runtime Error
17
2940
142
c11, c12, c13 = input().split() c21, c22, c23 = input().split() if c11==c23 and c12==c22 and c13==c21: print("YES") else: print("NO")
s712209097
p03555
u339922532
1576519755
Python
Python (3.4.3)
py
Runtime Error
17
2940
66
c1 = input() c2 = input() print("YES" if c1 = c2[::-1] else "NO")
s498382617
p03555
u339922532
1576519702
Python
Python (3.4.3)
py
Runtime Error
17
2940
66
c1 = input() c2 = input() print("Yes" if c1 = c2[::-1] else "No")
s743983156
p03555
u076764813
1576384014
Python
Python (3.4.3)
py
Runtime Error
17
2940
148
c11, c12, c13 = int(input().split()) c21, c22, c23 = int(input().split()) if c11==c23 and c12==c22 and c13==c21: print("YES") else: print("NO")
s602294865
p03555
u119655368
1576028308
Python
Python (3.4.3)
py
Runtime Error
17
2940
120
import math s = int(input()) for i in range(s): if math.sqrt(s - i).is_integer(): print(s - i) break
s680487260
p03555
u793666115
1575687434
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38256
361
import bisect n = int(input()) a = list(map(int,input().split())) b = list(map(int,input().split())) c = list(map(int,input().split())) count = 0 a1 = sorted(a) b1 = sorted(b) c1 = sorted(c) for i in c1: prior_c = bisect.bisect_right(b1,i) prior_c_list = b1[:prior_c] for j in prior_c_list: count +...
s450718835
p03555
u609814378
1575068047
Python
Python (3.4.3)
py
Runtime Error
17
3060
180
A = list(map(str, input().split())) B = list(map(str, input().split())) REA = (A[0] + A[1] + A[2]) REB = (A[2] + A[1] +A[0]) if REA == REB: print("YES") else: print("NO")
s870977342
p03555
u609814378
1575067967
Python
Python (3.4.3)
py
Runtime Error
17
3060
172
A = [input() for _ in range(N)] B = [input() for _ in range(N)] REA = (A[0] + A[1] + A[2]) REB = (A[2] + A[1] +A[0]) if REA == REB: print("YES") else: print("NO")
s838307661
p03555
u609814378
1574810306
Python
Python (3.4.3)
py
Runtime Error
18
2940
188
C11,C12,C13 = map(str, input().split()) C21,C22,C23= map(str, input().split()) hoge = (C13 + C12 + C11) hoge2 =(C21 + C22 + C23) if hoge == hpge2: print("YES") else: print("NO")
s340368864
p03555
u405256066
1573793654
Python
Python (3.4.3)
py
Runtime Error
17
2940
148
from sys import stdin s1 = (stdin.readline().rstrip()) s2 = int(stdin.readline().rstrip()) if s1 == s2[::-1]: print("YES") else: print("NO")
s954386697
p03555
u109617108
1573606320
Python
PyPy3 (2.4.0)
py
Runtime Error
166
38256
273
import bisect point=0 N=int(input()) A=list(map(int,input().split())) B=list(map(int,input().split())) C=list(map(int,input().split())) A.sort() B.sort() C.sort() for i in range(N): m=bisect.bisect_left(A,B[i]) n=bisect.bisect_left(C,B[i]) point+=m*n print(point)
s409944259
p03555
u663438907
1573175281
Python
Python (3.4.3)
py
Runtime Error
17
3060
169
C = [] for i in range(2): C.append(list(int, input().split())) if C[0][0] == C[1][2] and C[0][1] == C[1][1] and C[0][2] == C[1][0]: print('YES') else: print('NO')
s910895431
p03555
u093129359
1573000065
Python
Python (3.4.3)
py
Runtime Error
18
2940
95
s,t=input() if s[0]==t[2] and s[1]==t[1] and s[2]==t[0]: print("YES") else: print("NO")
s487781306
p03555
u093129359
1572999977
Python
Python (3.4.3)
py
Runtime Error
17
3064
94
s,t=input() if s[0]==t[2] and s[1]==t[1] and s[2]=t[0]: print("YES") else: print("NO")
s939260080
p03555
u533713111
1572648324
Python
Python (3.4.3)
py
Runtime Error
17
3064
140
C = [input().split() for i in range(2)] if C[0][0] == C[1][2] and C[0][1] == C[1][1] and C[0][2] == C[1][0]: print('YES') else:print('NO')
s666333141
p03555
u533713111
1572648095
Python
Python (3.4.3)
py
Runtime Error
17
3060
146
C = [input().split() for i in range(2)] if (C[0][0] == C[1][2]) and (C[0][1] == C[1][1]) and (C[0][2] == C[1][0]): print('YES') else:print('NO')
s060806871
p03555
u533713111
1572648054
Python
Python (3.4.3)
py
Runtime Error
18
2940
146
C = [input().split() for i in range(2)] if (C[0][0] == C[1][2]) and (C[0][1] == C[1][1]) and (C[0][2] == C[1][0]): print('YES') else:print('NO')
s101595285
p03555
u895536055
1571961780
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
c1 = input() c2 = input() c2.reverse() if c1 == c2: print("YES") else: print("NO")
s254580776
p03555
u246572032
1571427601
Python
Python (3.4.3)
py
Runtime Error
17
2940
37
n = int(input()) print(int(n**.5)**2)
s088591864
p03555
u873269440
1569376872
Python
Python (3.4.3)
py
Runtime Error
17
2940
59
a=input() b=input'() print('YES' if a[-1::-1]==b else 'NO')
s178547805
p03555
u175590965
1569374221
Python
Python (3.4.3)
py
Runtime Error
17
2940
114
a = input() b = input() if a[0] == b[2] and a[1] == b[1] and a[2] == b[0]: print("YES") else: priont("NO")
s899297907
p03555
u950376354
1569096414
Python
Python (3.4.3)
py
Runtime Error
17
2940
150
C11,C12,C13 = map(str, input().split()) C21,C22,C23 = map(str, input().split()) if C11==C23 & C12==C22 & C13==C21: print('YES') else: print('NO')
s493046948
p03555
u900288399
1568759999
Python
Python (3.4.3)
py
Runtime Error
17
3064
472
N = int(input()) A = input() B = input() C = input() A = sorted(list(map(int, A.strip("¥n").split(" ")))) B = sorted(list(map(int, B.strip("¥n").split(" ")))) C = sorted(list(map(int, C.strip("¥n").split(" ")))) l_a = len(A) l_b = len(B) l_c = len(C) p_a = 0 p_b = 0 p_c = 0 ss = 0 for b in B: for i in range(p_a, l_a)...
s385742620
p03555
u482808969
1568504163
Python
PyPy3 (2.4.0)
py
Runtime Error
174
38256
77
c = [input() for i in range(2)] print("YES" if c[0] == c[1][::-1]) else "NO")
s000853515
p03555
u488127128
1567634560
Python
Python (3.4.3)
py
Runtime Error
17
2940
50
a = input() b = input() print('YES' if a==b[::-1])
s375230542
p03555
u131264627
1567526721
Python
Python (3.4.3)
py
Runtime Error
17
2940
70
c1 = input() c2 = input() print('Yes' if c1 == c2.reverse() else 'No')
s124355821
p03555
u068112689
1566967372
Python
Python (3.4.3)
py
Runtime Error
150
12404
275
import numpy as np import bisect n = int(input()) A = sorted(list(map(int, input().split()))) B = list(map(int, input().split())) C = sorted(list(map(int, input().split()))) ans = 0 for b in B: ans += bisect.bisect_left(A, b) * (n - bisect.bisect_right(C, b)) print(ans)
s056272578
p03555
u068112689
1566967012
Python
Python (3.4.3)
py
Runtime Error
149
12484
240
import numpy as np n = int(input()) A = np.array(list(map(int, input().split()))) B = np.array(list(map(int, input().split()))) C = np.array(list(map(int, input().split()))) ans = 0 for b in B: ans += sum(A < b) * sum(C > b) print(ans)
s940471828
p03555
u643714578
1566924962
Python
Python (3.4.3)
py
Runtime Error
17
2940
113
l=[input() for i in range()] print("YES" if l[0][0]==l[1][2] and l[0][1]==l[1][1] and l[0][2]==l[1][0] else "NO")
s075529799
p03555
u357630630
1566889380
Python
Python (3.4.3)
py
Runtime Error
17
2940
263
N = int(input()) # [exit(0) if i ** 2 > N else print(i ** 2) if (i+1) ** 2 > N else print("", end="") for i in range(1, N)] for i in range(1, N): if i ** 2 > N: print((i - 1) ** 2) break if i ** 2 == N: print(i ** 2) break
s641120159
p03555
u126232616
1566664224
Python
Python (3.4.3)
py
Runtime Error
148
12432
142
import numpy as np l = [list(input()) for i in range(2)] arr = np.array(l) if arr == np.rot90(arr,k=2): print("YES") else: print("NO")
s913368530
p03555
u627530854
1566515867
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
r1 = input() r2 = reverse(input()) print("YES" if r1 == r2 else "NO")
s932471964
p03555
u371530330
1566420551
Python
Python (3.4.3)
py
Runtime Error
18
2940
92
n = int(input()) ans = 0 for i in range(1,n+1): if i**2 <= n: ans = i**2 print(ans)
s004025994
p03555
u464912173
1565847107
Python
Python (3.4.3)
py
Runtime Error
17
2940
68
s=input() t=input() print("YES" if s==t[::-1] else "NO")
s455548665
p03555
u618373524
1565808771
Python
Python (3.4.3)
py
Runtime Error
18
2940
49
n = int(input()) m = int(n**0.5) print(int(m**2))
s036488347
p03555
u408620326
1565744095
Python
Python (3.4.3)
py
Runtime Error
17
3064
109
C=[input().split(),input().split()] res='YES' for i in range(3): if C[0][i]!=C[1][2-i]: res='NO' print(res)
s449469828
p03555
u558059388
1565411278
Python
Python (3.4.3)
py
Runtime Error
17
2940
86
x,y=map(str,input().split()) X=x[::-1] if X==y: print('YES') else: print('NO')
s785960015
p03555
u297126485
1564792699
Python
Python (3.4.3)
py
Runtime Error
17
2940
358
N = int(input()) A = list(sorted(map(int, input().split()))) B = list(sorted(map(int, input().split())) C = list(sorted(map(int, input().split()))) import bisect upper_condition = [bisect.bisect_left(A, b) for b in B] lower_condition = [N - bisect.bisect_right(C, b) for b in B] print(sum(map(lambda x: x[0]*x[1], zi...
s840947215
p03555
u297126485
1564790746
Python
Python (3.4.3)
py
Runtime Error
158
12492
431
import numpy as np N = int(input()) A = np.array(list(sorted(map(int, input().split()))), dtype=int) B = np.array(list(sorted(map(int, input().split()))), dtype = int) C = np.array(list(sorted(map(int, input().split()))), dtype = int) upper_condition = np.array([1 + np.max(np.where(A < b)[0]) for b in B]) lower_con...
s253200965
p03555
u297126485
1564790704
Python
Python (3.4.3)
py
Runtime Error
156
12516
427
import numpy as np N = int(input()) A = np.array(list(sorted(map(int, input().split()))), dtype=int) B = np.array(list(sorted(map(int, input().split()))), dtype = int) C = np.array(list(sorted(map(int, input().split()))), dtype = int) upper_condition = np.array([1 + np.max(np.where(A < b)[0]) for b in B]) lower_condi...
s644146609
p03555
u842388336
1564786054
Python
Python (3.4.3)
py
Runtime Error
17
2940
113
C1=input() C2=input() if (C1[0]==C[2]) and (C1[0]==C2[2]) and (C1[1]==C2[1]): print("YES") else: print("NO")
s353233855
p03555
u003501233
1564711538
Python
Python (3.4.3)
py
Runtime Error
17
3060
142
x = list(map(input().split())) y = list(map(input().split())) if x[0]==y[2] and x[1]==y[1] and x[2]==y[0]: print("YES") else: print("NO")
s968542242
p03555
u374802266
1564507798
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
if input()[0]=input()[2]: print('YES') else: print('NO')
s243800506
p03555
u676059589
1563828542
Python
PyPy3 (2.4.0)
py
Runtime Error
183
38384
262
import bisect n = int(input()) a = list(map(int,input().split())) b = list(map(int,input().split())) c = list(map(int,input().split())) a.sort() c.sort() ans = 0 for i in b: ans += (bisect.bisect_left(a,i)) * (len(c) - bisect.bisect_right(c,i)) print(ans)
s670974739
p03555
u823609854
1563810626
Python
Python (3.4.3)
py
Runtime Error
17
2940
89
f = input() s = input() if list(s) == list(reversed(f)): print('YES') else; print('NO')
s032612072
p03555
u823609854
1563810345
Python
Python (3.4.3)
py
Runtime Error
17
2940
91
f = input() s = input() if list(s) == list(reversed(f)): print('YES') else; print('NO')
s833136982
p03555
u071916806
1563307829
Python
Python (3.4.3)
py
Runtime Error
17
2940
159
a,b,c=input().split() d,e,f=input().split() if a==f if b==e: if c==d: print'YES' else: print'NO' else: print'NO' else: print'NO'
s179820210
p03555
u071916806
1563307739
Python
Python (3.4.3)
py
Runtime Error
17
2940
101
a,b,c=input().split() d,e,f=input().split() if a==f and b==e and c==d: print'YES' else: print'NO'
s560490567
p03555
u071916806
1563307676
Python
Python (3.4.3)
py
Runtime Error
17
2940
101
a,b,c=input().split() d,e,f=input().split() if a==f and b==e and c==d: print'Yes' else: print'No'
s977347542
p03555
u941644149
1562001728
Python
Python (3.4.3)
py
Runtime Error
18
3064
1065
def binary_search_A(N,A,b): upper = N - 1 lower = 0 while upper - lower > 1: middle = upper + lower // 2 if A[middle] > b: upper = middle else: lower = middle if b >= A[upper]: return upper+1 elif b >= A[lower]: return low...
s509670332
p03555
u777394984
1561902423
Python
Python (3.4.3)
py
Runtime Error
17
2940
97
s=input() m=[s[0],s[1],s[2]] a=m.reverce() if str(a)==input(): print("YES") else: print("NO")
s370418570
p03555
u759412327
1561828081
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
a = int(input()) b = int(input()) if a == b[::-1]: print("YES") else: print("NO")
s445410436
p03555
u759412327
1561828050
Python
Python (3.4.3)
py
Runtime Error
17
2940
85
a = int(input()) b = int(input()) if a = b[::-1]: print("YES") else: print("NO")
s068076981
p03555
u759412327
1561827385
Python
Python (3.4.3)
py
Runtime Error
17
2940
80
a = input() b = input() if a == b.reverse(): print("YES") else: print("NO")
s028792881
p03555
u759412327
1561827348
Python
Python (3.4.3)
py
Runtime Error
17
2940
78
a = input() b = input() if a = b.reverse(): print("YES") else: print("NO")
s573143413
p03555
u940117191
1561767351
Python
Python (3.4.3)
py
Runtime Error
18
3064
989
def lower_elements(A, b): ''' リストAの要素のうち,b未満のものの個数を返す関数 ''' lower_bound = -1 upper_bound = len(A) while upper_bound - lower_bound > 1: middle = (lower_bound + upper_bound) // 2 if A[middle] < b: lower_bound = middle else: upper_bound = middle return lo...
s208992317
p03555
u441201379
1561643352
Python
Python (3.4.3)
py
Runtime Error
17
3060
222
from sys import stdin a = list(map(char, input().split())) b = list(map(char, input().split())) def rot(a,b): if a[0] == b[2]: if a[1]==b[1]: if a[2]==b[0]: return 'YES' return 'NO' print(rot(a,b))
s597757765
p03555
u441201379
1561643295
Python
Python (3.4.3)
py
Runtime Error
17
2940
215
from sys import stdin a = list(map(char, input().split())) b = list(map(char, input().split())) def rot(a,b): if a[0] == b[2]: if a[1]==b[1]: if a[2]==b[0]: return 'YES' return 'NO' rot(a,b)
s176985307
p03555
u441201379
1561642875
Python
Python (3.4.3)
py
Runtime Error
18
3056
205
a = {int(s) for s in input().split()} b = {int(s) for s in input().split()} c = 0 for i in range(3): if a[i] == b[2-i]: c += 1 else: print('NO') break if c == 2: print('YES')
s871356875
p03555
u237493274
1560461665
Python
PyPy3 (2.4.0)
py
Runtime Error
171
38512
302
import bisect import numpy as np n = int(input()) abc = [sorted(list(map(int, input().split()))) for i in range(3)] unko = np.zeros(n) for c in abc[2]: unko[:bisect.bisect_left(abc[1], c)] += 1 s = 0 for i in range(len(abc[1])): s += bisect.bisect_left(abc[0], abc[1][i])*unko[i] print(int(s))
s095276819
p03555
u371409687
1560447232
Python
Python (3.4.3)
py
Runtime Error
17
2940
93
A=input() B=input() if A[0]=B[2] and A[1]=B[1] and A[2]=B[0]: print("YES") else:print("NO")
s845628350
p03555
u584174687
1560353971
Python
PyPy3 (2.4.0)
py
Runtime Error
183
38384
928
def main(): num = int(input()) data_a = list(map(int, input().split())) data_a.sort() data_b = list(map(int, input().split())) data_b.sort() data_c = list(map(int, input().split())) data_c.sort() shita_b = [0 for i in range(num)] ind = 0 for i in range(num): now_b = da...
s798720527
p03555
u227170240
1560310509
Python
Python (3.4.3)
py
Runtime Error
17
2940
162
a = list(map(str, input().split())) b = list(map(str, input().split())) if a[0] == b[2] and a[1] == b[1] and a[2] == b[0]: print("YES") else: print("NO")
s140298447
p03555
u172111219
1559862233
Python
PyPy3 (2.4.0)
py
Runtime Error
172
38384
113
c1 = input() c2 - input() if c1[0]==c2[2] and c1[1]==c2[1] and c1[2]==c2[0] : print('YES') else: print('NO')
s066033841
p03555
u172111219
1559862134
Python
PyPy3 (2.4.0)
py
Runtime Error
170
38384
112
c1 = input() c2 - input() if c1[0]==c2[2] and c1[1]=c2[1] and c1[2]==c2[0] : print('YES') else: print('NO')
s493246923
p03555
u497596438
1559788630
Python
PyPy3 (2.4.0)
py
Runtime Error
170
38256
294
#include<bits/stdc++.h> #define rep(i, n) for(int i = 0; i < n; i++) using namespace std; int main(){ string c1,c2; cin >>c1>>c2; string c3=c1,c4=c2; reverse(c1.begin(),c1.end()); reverse(c2.begin(),c2.end()); if (c1==c4 and c2==c3) cout <<"YES"<<endl; else cout <<"NO"<<endl; }
s773567824
p03555
u691018832
1558662735
Python
Python (3.4.3)
py
Runtime Error
17
3060
182
# sys.stdin.readline() import sys import math input = sys.stdin.readline bcd = input() efg = input() if b == g and c == f and d == e: ans = 'Yes' else: ans = 'No' print(ans)
s399593014
p03555
u701318346
1558547589
Python
Python (3.4.3)
py
Runtime Error
17
2940
117
C1 = input() C2 = input() if C1[0] == C[2] and C1[1] == C2[1] and C1[2] == C2[0]: print('YES') else: print('NO')
s267000673
p03555
u682730715
1558069388
Python
Python (3.4.3)
py
Runtime Error
17
3056
160
read = lambda: sys.stdin.readline().rstrip() s1 = read() s2 = read() if s1[0] == s2[2] and s1[1] == s2[1] and s1[2] == s2[0]: print("YES") else: print("NO")
s753910109
p03555
u552502395
1557712084
Python
Python (3.4.3)
py
Runtime Error
17
2940
114
s=input() t=input() for c in range(3): if s[c]!=t[2-c]: print("NO") sys.exit(0) print("YES");