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
s068587329
p03555
u033378815
1520876087
Python
Python (3.4.3)
py
Runtime Error
17
2940
360
import heapq as hq INF = 10_0000_0007 K = int(input()) dist = [INF for _ in range(K)] h = [] hq.heappush(h, (1, 1)) while h: v, c = hq.heappop(h) if dist[v] <= c: continue dist[v] = c if dist[(v+1)%K] > c+1: hq.heappush(h, ((v+1)%K, c+1)) if dist[(v*10)%K] > c: hq.he...
s434034387
p03555
u562016607
1520806112
Python
PyPy3 (2.4.0)
py
Runtime Error
163
38256
349
# coding: utf-8 # Your code here! from datetime import datetime K = int(input()) start = datetime.now() def KSum(n): k = 0 for i in str(n): k += int(i) return k m = KSum(K) j = 1 while((datetime.now()-start).total_seconds() < 1.8): for x in range(100): P = KSum(K*j) if m > P: ...
s565282484
p03555
u319612498
1519062603
Python
Python (3.4.3)
py
Runtime Error
17
2940
77
a=input() b=input() if a==b.reverse(): print("YES") else: print("NO")
s389595269
p03555
u319612498
1519062411
Python
Python (3.4.3)
py
Runtime Error
17
2940
152
c11,c12,c13=map(str,input().split()) c21,c22,c23=map(str,input().split()) if c11==c23 and c12==c22 and c13==c21: print("YES") else: print("NO")
s511707633
p03555
u319612498
1519062323
Python
Python (3.4.3)
py
Runtime Error
17
2940
151
c11,c12,c13=map(int,input().split()) c21,c22,c23=map(int,input().split()) if c11==c23 and c12==c22 and c13==c21: print("YES") else: print("NO")
s750736022
p03555
u667949809
1518993274
Python
Python (3.4.3)
py
Runtime Error
18
2940
101
a=input() b=input() if (a[0]==b[2] and a[1]==b[a] and a[2]==b[0]): print("YES") else: print("NO")
s761976320
p03555
u667949809
1518993157
Python
Python (3.4.3)
py
Runtime Error
17
2940
99
a=input() b=input() if a[0]==b[2] and a[1]==b[a] and a[2]==b[0]: print("YES") else: print("NO")
s200655124
p03555
u667949809
1518993126
Python
Python (3.4.3)
py
Runtime Error
18
2940
99
a=input() b=input() if a[0]==b[2] and a[1]==b[a] and a[2]==b[0]: print("Yes") else: print("No")
s476825342
p03555
u030726788
1518898279
Python
Python (3.4.3)
py
Runtime Error
17
2940
93
A=input() B=input() if(A[0]==B[2]&&A[1]==B[1]&&A[2]=B[0]): print("YES") else: print("NO")
s674781025
p03555
u390958150
1517774670
Python
Python (3.4.3)
py
Runtime Error
17
3064
329
n = int(input()) A = list(map(int,input().split())) B = list(map(int,input().split())) C = list(map(int,input().split())) count = 0 for c in C: for b in B: if b >= c: continue else: saidan = filter(lambda x: x<b ,A) count+=len(list(saidan)) pri...
s815209684
p03555
u000349418
1517026721
Python
Python (3.4.3)
py
Runtime Error
18
3060
139
A,B,C=map(str,input().split(' ')) D,E,F=map(str,input().split(' ')) if (A==F) and (B==E) and (C==D): print('YES') else: print('NO')
s728426790
p03555
u386819480
1513913282
Python
Python (3.4.3)
py
Runtime Error
18
3060
125
# a = input() # b = input() a,b = input().split() if(a == b[::-1] and b == a[::-1]): print('YES') else: print('NO')
s866732952
p03555
u744021017
1513654123
Python
Python (3.4.3)
py
Runtime Error
18
3064
295
N = int(input()) A = map(int, input().split()) B = map(int, input().split()) C = map(int, input().split()) A = list(A) B = list(B) C = list(C) count = 0 for a in A: for b in B: if a < b: for c in C: if b < c: count += 1 print(count)
s574488900
p03555
u787988531
1513106978
Python
Python (2.7.6)
py
Runtime Error
11
2568
381
N = int(raw_input()) As = [(int(i), 2) for i in raw_input().split(" ")] Bs = [(int(i), 1) for i in raw_input().split(" ")] Cs = [(int(i), 0) for i in raw_input().split(" ")] l = sorted(As + Bs + Cs, key=lambda x: (x[0], x[1])) ac = 0 bc = 0 cc = 0 for i in l: if i[1] == 2: ac += 1 elif i[1] == 1: ...
s391147982
p03555
u787988531
1513106918
Python
Python (2.7.6)
py
Runtime Error
10
2568
353
N = int(raw_input()) As = [(int(i), 2) for i in raw_input().split(" ")] Bs = [(int(i), 1) for i in raw_input().split(" ")] Cs = [(int(i), 0) for i in raw_input().split(" ")] l = sorted(As + Bs + Cs) ac = 0 bc = 0 cc = 0 for i in l: if i[1] == 2: ac += 1 elif i[1] == 1: bc += ac elif i[1...
s061391170
p03555
u443630646
1512953561
Python
Python (3.4.3)
py
Runtime Error
18
3064
441
# using sort n = int(input()) count = 0 a = [[0 for i in range(n)] for i in range(3)] for i in range(3): a[i] = [int(x) for x in input().split()] a[i].sort() # Brute force for i in a[0]: for j in a[1]: if i < j: index = 0 for k in a[2]: if j < k: ...
s087506254
p03555
u443630646
1512952577
Python
Python (3.4.3)
py
Runtime Error
18
3064
431
# using sort n = int(input()) count = 0 a = [[0 for i in range(n)] for i in range(3)] for i in range(3): a[i] = [int(x) for x in input().split()] a[i].sort() # Brute force index = 0 for i in a[0]: for j in a[1]: if i < j: for k in a[2]: if j < k: ...
s849827947
p03555
u019584841
1511409850
Python
Python (3.4.3)
py
Runtime Error
19
3060
123
a,b=input().split(" ") if (a[0]==b[2] and a[1]==b[1] and a[2]==b[0]): print("YES") else: print("NO")
s654508709
p03555
u019584841
1511408583
Python
Python (3.4.3)
py
Runtime Error
18
2940
99
a,b=input().split() if a[0]==b[2] and a[1]==b[1] and a[2]==b[0]: print("YES") else: print("NO")
s624911501
p03555
u554720358
1510461298
Python
Python (2.7.6)
py
Runtime Error
10
2568
121
#!/usr/bin/env python # input str1=input() str2=input() if str1 == str2[::-1]: print("YES") else: print("NO")
s478138326
p03555
u224050758
1510444970
Python
Python (3.4.3)
py
Runtime Error
17
3064
578
""" small multiple """ K = int(input()) def get_sum_each_digits(number): """ get sum. """ chars = list(str(number)) int_map = map(int, chars) result = sum(int_map) # print("number:{0}, result:{1}".format(number, result)) return result def main(): """ main function. """ ...
s799747541
p03555
u224050758
1510436533
Python
Python (3.4.3)
py
Runtime Error
18
3064
979
""" snuke festival """ def input_list(): """ returns list from stdin """ input_map = map(int, input().split()) return list(input_map) def get_bigger_index(base_num, sub_list): """ returns first index that is bigger than base number """ bigger_index = -1 for index, item in enume...
s329860226
p03555
u869282786
1510343327
Python
Python (3.4.3)
py
Runtime Error
18
2940
514
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); String w1=sc.nextLine(); String w2=sc.nextLine(); for(int i=0;i<3;i+...
s463428204
p03555
u224050758
1510195979
Python
Python (3.4.3)
py
Runtime Error
19
2940
172
c11, c12, c13 = list(raw_input()) c21, c22, c23 = list(raw_input()) result = c11 == c23 and \ c12 == c22 and \ c13 == c21 ans = "YES" if result else "NO" print ans
s085200930
p03555
u301043830
1510158072
Python
Python (3.4.3)
py
Runtime Error
17
3060
270
input1 = input().split(' ') input2 = input().split(' ') if input1[2] == input2[0] : if input1[1] == input2[1] : if input1[0] == input2[2] : print("YES") else : print("NO") else : print("NO") else : print("NO")
s794505911
p03555
u301043830
1510157964
Python
Python (3.4.3)
py
Runtime Error
19
3060
270
input1 = input().split(' ') input2 = input().split(' ') if input1[2] == input2[0] : if input1[1] == input2[1] : if input1[0] == input2[2] : print("Yes") else : print("No") else : print("No") else : print("No")
s240306882
p03555
u094533035
1510151740
Python
Python (3.4.3)
py
Runtime Error
17
2940
85
a = input() b = input() if a == d and b == c print('YES') else: print('NO')
s802081922
p03555
u094533035
1510151657
Python
Python (3.4.3)
py
Runtime Error
17
2940
109
a = input() b = input() c = a[::-1] d = b[::-1] if a = d and b = c: print('YES') else: print('NO')
s272587876
p03555
u517935400
1510118419
Python
Python (2.7.6)
py
Runtime Error
10
2568
99
a=input() b=input() if a[0]==b[2] and a[1]==b[1] and a[2]==b[0]: print("YES") else: print("NO")
s708325745
p03555
u667024514
1510092908
Python
Python (3.4.3)
py
Runtime Error
19
2940
81
a = int(input()) import math b = math.sqrt(a) c = math.floor(b) d = c**2 print(d)
s011200882
p03555
u370331385
1510090248
Python
Python (3.4.3)
py
Runtime Error
17
2940
199
a=input() a=list(a) b=input() b=list(b) n=len(a) j=1 for i in range(n): if(a[i]!=b[-(i+1)]): j=0 if(j==1): print("YES") else: print("NO")
s989832541
p03555
u370331385
1510090134
Python
Python (3.4.3)
py
Runtime Error
17
2940
222
a=input().split() a=list(a) b=input().split() b=list(b) n=len(a) N=1 for i in range(n): if(a[i]!=b[-(i+1)]): N=0 if(N==1): print("YES") else: print("NO")
s404920999
p03555
u370331385
1510090091
Python
Python (3.4.3)
py
Runtime Error
17
3060
165
a=input().split() a=list(a) b=input().split() b=list() n=len(a) N=1 for i in range(n): if(a[i]!=b[-(i+1)]): N=0 if(N==1): print("YES") else: print("NO")
s372139830
p03555
u331159771
1510077215
Python
Python (3.4.3)
py
Runtime Error
17
2940
159
line1 = list(raw_input()) line2 = list(raw_input()) overall = list1 + list2 gyaku = overall[::-1] if overall == gyaku: print("YES") else: print("NO")
s520941868
p03555
u432780056
1509933946
Python
PyPy2 (5.6.0)
py
Runtime Error
48
28396
310
from bisect import bisect_left, bisect_right br, bl = bisect_right, bisect_left n = input() a = sorted([int(x) for x in raw_input().split()]) b = sorted([int(x) for x in raw_input().split()]) c = sorted([int(x) for x in raw_input().split()]) ans = 0 for bi in b: ans += (bl(a, bi) * (n - br(c, bi))) print ans
s134787611
p03555
u795479967
1509927116
Python
Python (3.4.3)
py
Runtime Error
19
3188
1549
import operator def snuke_fest(top_arr, middle_arr, bottom_arr): sorted_arrs = list(sorted(arr) for arr in (top_arr, middle_arr, bottom_arr)) del top_arr del middle_arr del bottom_arr pointers = [0] * 3 ended = [False] * 3 min_posi = [None] * len(sorted_arrs[0]) * 3 min_posi_pointer = ...
s682015627
p03555
u795479967
1509918185
Python
Python (3.4.3)
py
Runtime Error
17
2940
103
text1 = raw_input() text2 = raw_input() if text1 == text2[::-1]: print("OK") else: print("NO")
s718927917
p03555
u795479967
1509918065
Python
Python (3.4.3)
py
Runtime Error
18
2940
168
def can_rotate(text): lines = text.split("\n") return lines[0] == lines[1][::-1] text = raw_input() if can_rotate(text): print("OK") else: print("NO")
s772193453
p03555
u785205215
1509878563
Python
Python (3.4.3)
py
Runtime Error
17
3060
298
from sys import stdin def readLine_int_list():return list(map(int, stdin.readline().split())) def main(): c1 = readLine_int_list() c2 = readLine_int_list() if c1[0] == c2[-1] and c1[1] == c2[1] and c1[-1] == c2[0]: print("YES") else: print("NO") if __name__ == "__main__": main()
s834979024
p03555
u785205215
1509878492
Python
Python (3.4.3)
py
Runtime Error
16
2940
312
from sys import stdin def readLine_int_list():return list(map(int, stdin.readline().split())) def main(): c1 = readLine_int_list() c2 = readLine_int_list() if c1[0] == c2[-1] and c1[1] == c2[1] and c1[-1] == c2[0]: print("YES") else: print("NO") if __name__ == "__main__": main()
s364695442
p03555
u909643606
1509853002
Python
Python (3.4.3)
py
Runtime Error
17
2940
118
a=input() b=input() aa=a[::-1] if aa[1]==b[0] and aa[2]==b[1] and aa[3]==b[2]: print("YES") else: print("NO")
s506416764
p03555
u726662026
1509850347
Python
Python (3.4.3)
py
Runtime Error
17
2940
239
in = [input().split(" "), input().split(" ")] bool = True for i in 0..1: for j in 0..2: if in[i][j] != in[1-i][2-j]: bool = False break if bool == False: break if bool == True: print("YES") else: print("NO")
s706816314
p03555
u352499693
1509850296
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
print('YES'if input()==input[::-1] else'NO')
s460366248
p03555
u726662026
1509849583
Python
Python (3.4.3)
py
Runtime Error
17
3064
239
in = [raw_input().split(), raw_input().split()] bool = True for i in 0..1: for j in 0..2: if in[i][j] != in[1-i][2-j]: bool = False break if bool == False: break if bool == True: print("YES") else: print("NO")
s758120282
p03555
u655821296
1509849487
Python
Python (2.7.6)
py
Runtime Error
10
2568
317
N = int((input())) A = [int(i) for i in input().split()] B = [int(i) for i in input().split()] C = [int(i) for i in input().split()] can_make = 0 for upp in range(N): for midd in range(N): for loww in range(N): if A[upp] < B[midd] < C[loww]: can_make += 1 print can_make
s657922965
p03555
u726662026
1509849436
Python
Python (3.4.3)
py
Runtime Error
17
2940
239
in = [raw_input().split(), raw_input().split()] bool = true for i in 0..1: for j in 0..2: if in[i][j] != in[1-i][2-j]: bool = false break if bool == false: break if bool == true: print("YES") else: print("NO")
s422188033
p03555
u726662026
1509849410
Python
Python (3.4.3)
py
Runtime Error
17
2940
239
in = [raw_input().split(), raw_input().split()] bool = true for i in 0..1: for j in 0..2: if in[i][j] != in[1-i][2-j]: bool = false break if bool == false: break if bool == true: print("YES") else: print("NO")
s013948909
p03555
u667024514
1509849405
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
a = int(input()) import math b = math.sqrt(a) c = math.floor(b) d = c**2 print(d)
s372126293
p03555
u655821296
1509849108
Python
Python (3.4.3)
py
Runtime Error
18
3064
316
N = int((input())) A = [int(i) for i in input().split()] B = [int(i) for i in input().split()] C = [int(i) for i in input().split()] can_make = 0 for upp in range(N): for midd in range(N): for loww in range(N): if A[upp] < B[midd] < C[loww]: can_make += 1 print(can_make)
s971407059
p03555
u726662026
1509849108
Python
Python (3.4.3)
py
Runtime Error
17
2940
276
in = {raw_input().split(), raw_input().split()} bool = true for i in 0..1: for j in 0..2: if in[i][j] != in[1-i][2-j]: bool = false print("NO") break if bool == false: break if bool == true: print("YES")
s801543398
p03555
u655821296
1509849103
Python
Python (3.4.3)
py
Runtime Error
17
3064
316
N = int((input())) A = [int(i) for i in input().split()] B = [int(i) for i in input().split()] C = [int(i) for i in input().split()] can_make = 0 for upp in range(N): for midd in range(N): for loww in range(N): if A[upp] < B[midd] < C[loww]: can_make += 1 print(can_make)
s999226304
p03555
u337725050
1509849050
Python
Python (3.4.3)
py
Runtime Error
17
2940
103
li_a=list(input()) li_b=list(input()) li_a.reverse() if li_a==li_b: print(YES) else: print(NO)
s830013497
p03555
u698535708
1509848983
Python
Python (3.4.3)
py
Runtime Error
17
3060
210
def s(n): ret = 0 sn = str(n) for c in sn: ret += int(c) return ret N = int(input()) t = N ans = float('inf') for i in range(600000): t += N ans = min(s(t), ans) print(ans)
s127619333
p03555
u158225062
1509848757
Python
Python (3.4.3)
py
Runtime Error
18
3060
245
# coding: utf-8 N = int(input()) array = [] X = int(100000/N) for i in range(X): Y = N*(i+1) STR = str(Y) a_list = list(map(float,STR)) sum_list = sum(a_list) array.append(sum_list) min_list = min(array) print(min_list)
s902553978
p03555
u498631675
1509847324
Python
Python (2.7.6)
py
Runtime Error
11
2692
306
# -*- coding: utf-8 -*- import itertools N = input() A = map(int, raw_input().split()) B = map(int, raw_input().split()) C = map(int, raw_input().split()) for i, j, k in itertools.product(range(N), range(N), range(N)): if A[i]<B[j]<C[k]: count+=1 else: continue print count
s292151926
p03555
u227791232
1509847272
Python
Python (2.7.6)
py
Runtime Error
10
2568
362
#!/user/bin/python # coding: UTF-8 N = int(raw_input()) A = map(int, raw_input().split()) B = map(int, raw_input().split()) C = map(int, raw_input().split()) A.sort() B.sort() C.sort() n = 0 for i in range(N): for j in range(N): if A[i] < B[j]: for k in range(N): if B[j] < C[k...
s805629567
p03555
u538127485
1509847256
Python
Python (3.4.3)
py
Runtime Error
17
2940
131
N = int(input().strip()) count = 0 while True: if (count + 1) ** 2 > N: print(count ** 2) break count += 1
s797200400
p03555
u943004959
1509846728
Python
PyPy3 (2.4.0)
py
Runtime Error
163
38732
330
import itertools def solve(): N = int(input()) A = list(map(int, input().split(" "))) B = list(map(int, input().split(" "))) C = list(map(int, input().split(" "))) cnt = 0 for ele in list((itertools.product(A, B, C))): if ele[0] < ele[1] < ele[2]: cnt += 1 print(cnt) ...
s266082911
p03555
u215207367
1509846532
Python
Python (2.7.6)
py
Runtime Error
10
2568
507
import sys DBG_FLAG = 0 def p_dbg(str): if(DBG_FLAG == 1): sys.stdout.flush() print str # 1st. get Num Num = int(raw_input()) p_dbg('Num : ' + str(Num)) square_max = 1 # MEMORY OVER # for i in range(1, Num): # tmp = i * i # p_dbg(str(i) + str(square_max)) # if(tmp <= Num): # ...
s943204041
p03555
u538127485
1509846130
Python
Python (3.4.3)
py
Runtime Error
17
2940
131
N = int(input().strip()) count = 0 while True: if (count + 1) ** 2 > N: print(count ** 2) break count += 1
s523448864
p03555
u538127485
1509845520
Python
Python (3.4.3)
py
Runtime Error
17
2940
126
N = int(input().strip()) count = 0 while True: if (count + 1) ** 2 > N: print(count) break count += 1
s315015997
p03555
u514077424
1509845497
Python
Python (3.4.3)
py
Runtime Error
17
3064
295
n = int(input()) a = tuple(map(int, input().split())) b =tuple(map(int, input().split())) c = tuple(map(int, input().split())) ans = 0 for i in range(n): for j in range(n): for k in range(n): if a[i] < b[j] < c[k]: ans = ans + 1 print(ans)
s657436186
p03555
u207707177
1509845028
Python
Python (3.4.3)
py
Runtime Error
17
2940
227
c1 = input().split() c2 = input().split() c=[] a =‘YES’ for k in range(3): c.append([c1[k]]+[c2[k]]) for j in range(3): if c[0][j] = c[1][3-j-1]: continue else: a=‘NO’ break print(a)
s502952491
p03555
u104922648
1509844855
Python
Python (3.4.3)
py
Runtime Error
17
2940
137
import numpy row1 = input() row2 = input() if row1[0] == row2[2] and row1[1] == row2[1] and row1[2] == row2[0]: print('YES') print('NO)
s119048098
p03555
u813238682
1509844341
Python
Python (3.4.3)
py
Runtime Error
17
3056
277
#!/usr/bin/env python # -*- coding: utf-8 -*- import math def main(): N = int(input()) for i in reversed(range(N)): int_sqrt = int(math.sqrt(i)) if i == int_sqrt ** 2: print(i) return None if __name__ == "__main__": main()
s771739942
p03555
u498631675
1509844061
Python
Python (2.7.6)
py
Runtime Error
10
2568
142
# -*- coding: utf-8 -*- C1=raw_input() C2=raw_input() if C1[0]==C2[2] and C1[1]==C2[1] and C1[2]==C2[0]: print 'YES' else: print 'NO
s694809441
p03555
u023041408
1509844042
Python
Python (3.4.3)
py
Runtime Error
17
2940
264
line1 = sys.stdin.readline().rstrip() line2 = sys.stdin.readline().rstrip() len2 = len(line2) res = True for i in range(0, len(line1)): if line2[len2-1 - i] != line1[i]: res = False print("NO") break if res == True: print("YES")
s845633683
p03555
u586577600
1509844030
Python
Python (3.4.3)
py
Runtime Error
17
2940
148
c1 = input() c2 = input() c2 = c2[::-1] import sys for (a, b) in zip(c1, c2): if a != b: print('NO') sys.exit(1) print('YES')
s990608148
p03555
u158225062
1509843918
Python
Python (3.4.3)
py
Runtime Error
17
2940
170
# coding: utf-8 # Your code here! N = input() M = input() N1 = list(N) M1 = list(M) if N1[0]==M1[2] and N2[1]==M1[1] and N1[2]==M1[0]: print(YES) else: print(NO)
s043833946
p03555
u370331385
1509843877
Python
Python (3.4.3)
py
Runtime Error
17
3060
148
a=input() a=list(a) b=input() b=list(b) n=len(a) j=1 for i in range(n): if(a[i]!=b[n-i]): j=0 if(j==1): print("YES") else: print("NO")
s094455451
p03555
u513510539
1509843798
Python
Python (3.4.3)
py
Runtime Error
17
3060
249
#!/usr/bin/env python3 from sys import stdin, stdout def rint(): return map(int, stdin.readline().split()) lines = stdin.readlines() a = input() b = input() if a[0] == b[2] and a[1] == b[1] and a[2] == b[0]: print("YES") else: print("NO")
s237522243
p03555
u656771711
1509843764
Python
Python (2.7.6)
py
Runtime Error
10
2568
112
t1=raw_input() t2=raw_input() if t1[0]==t2[2] and t1[1]==t2[1] and t1[2]==t2[0]: return "YES" else return "NO"
s290987235
p03555
u656771711
1509843713
Python
Python (2.7.6)
py
Runtime Error
10
2572
135
t1=raw_input().split(' ') t2=raw_input().split(' ') if t1[0]==t2[2] and t1[1]==t2[1] and t1[2]==t2[0]: return "YES" else return "NO"
s960136522
p03556
u738408150
1601134609
Python
Python (3.8.2)
py
Runtime Error
26
9032
63
import math x=int(input()) y= math.sqrt(x) z= y//1 print(int(z)
s676145686
p03556
u738408150
1601134445
Python
Python (3.8.2)
py
Runtime Error
27
8984
44
x=input() float(y)= sqrt(x) z= y//1 print(z)
s082727194
p03556
u492910842
1599978868
Python
PyPy3 (7.3.0)
py
Runtime Error
87
74252
21
print(int(n**0.5)**2)
s961361149
p03556
u546853743
1599755140
Python
Python (3.8.2)
py
Runtime Error
27
9084
96
n=int(input()) k=0 for i in range((n+1)/2): while (i+1)**2 < n: k+=1 print((k+1)**2)
s340769764
p03556
u546853743
1599754742
Python
Python (3.8.2)
py
Runtime Error
24
9012
115
import math n=int(input()) k=0 for i in range(math.sqrt(n)): while (i+1)**2 < n: k+=1 print((k+1)**2)
s845749400
p03556
u440478998
1599210051
Python
Python (3.8.2)
py
Runtime Error
26
9132
131
n = int(input()) k = int(input()) ref = 1 for i in range(n): if ref * 2 < ref + k: ref *= 2 else: ref += k print(ref)
s096415024
p03556
u005977014
1598899193
Python
Python (3.8.2)
py
Runtime Error
26
8832
133
N=int(input()) C=0 for i in range(1,N): if i**2<N: C=i**2 elif i**2=N: C=i**2 break elif i**2>N: break print(C)
s197110352
p03556
u005977014
1598899161
Python
Python (3.8.2)
py
Runtime Error
26
9020
133
N=int(input()) C=0 for i in range(1,N): if i**2<N: C=i**2 elif i**2=N: C=i**2 break elif i**2<N: break print(C)
s691220654
p03556
u244836567
1598574963
Python
Python (3.8.2)
py
Runtime Error
26
9068
49
a=int(input()) while i**2<=a: i=i+1 print(i**2)
s636684028
p03556
u389530753
1598287926
Python
Python (3.8.2)
py
Runtime Error
25
8948
204
import sys N=int(input()) if N=1: print("1") elif N=2: print("2") else: for i in range(N): if i**2>N: print((i-1)**2) sys.exit() else: pass
s104044293
p03556
u620846115
1598285095
Python
Python (3.8.2)
py
Runtime Error
25
9156
108
x = int(input()) a = [0] for i in range(10**5): if i**2<x: a.add(i**2) else: break print(max(a))
s888967612
p03556
u521323621
1597114149
Python
Python (3.8.2)
py
Runtime Error
57
9420
106
n = int(input()) for i in range(n, 1, -1): j = int(i ** 0.5) if int(j) ** 2 == i: break print(i)
s317821042
p03556
u107639613
1597027346
Python
PyPy3 (7.3.0)
py
Runtime Error
171
68580
260
import sys def input(): return sys.stdin.readline().strip() def main(): s = input() t = input() for i, c in enumerate(s): if t[-i-1] != c: print("NO") return print("YES") if __name__ == "__main__": main()
s640314361
p03556
u786020649
1596409167
Python
Python (3.8.2)
py
Runtime Error
26
9024
67
for x in range(int(input())): if x**2>n: print(x-1) break
s746816335
p03556
u456416458
1595012436
Python
Python (3.8.2)
py
Runtime Error
37
10220
165
s = input() n = int(s) answer = [] x = 1 answer.append(x) while (x * x < n): x += 1 answer.append(x * x) p = answer.pop() ans = answer.pop() print(ans)
s120588175
p03556
u870518235
1594262067
Python
Python (3.8.2)
py
Runtime Error
29
9148
62
N = int(input()) while N > i**2: i += 1 print((i-1)**2)
s752781686
p03556
u969848070
1593744131
Python
Python (3.8.2)
py
Runtime Error
25
8904
54
import math print(math.floor(math.sqrt(int(input())))
s088503421
p03556
u858670323
1593546198
Python
Python (3.8.2)
py
Runtime Error
28
9068
45
n = int(input()) x = int(sqrt(n)) print(x**2)
s134944154
p03556
u750651325
1592857327
Python
Python (3.8.2)
py
Runtime Error
24
8920
140
import math N = int(input()) ans = 1 for i in range(10**5): if i**2 =< N: ans = i**2 if i**2 > N: break print(ans)
s100176236
p03556
u540631540
1592505535
Python
Python (3.4.3)
py
Runtime Error
18
3188
87
n = int(input()) for i in range(n ** 0.5 + 3): if i ** 2 > n: print((i - 1) ** 2)
s232263140
p03556
u540631540
1592494004
Python
Python (3.4.3)
py
Runtime Error
17
2940
101
n = int(input()) m = n ** 0.5 + 3 for i in range(m,,-1): if i ** 2 < n: print(i ** 2) break
s948156348
p03556
u343490140
1592415966
Python
Python (3.4.3)
py
Runtime Error
49
2940
130
n = int(input()) for i in range(n): if (i+1)**2 > n: break elif (i+1)**2 < n: ans = (i + 1)**2 print(ans)
s831954329
p03556
u757274384
1591581657
Python
Python (3.4.3)
py
Runtime Error
17
2940
53
n = import math m = math.sqrt(n) print(math.floor(m))
s923031343
p03556
u350093546
1591562916
Python
Python (3.4.3)
py
Runtime Error
19
3192
78
n=int(input()) for i in range(1,40000): if i*i>n:  print(i-1) break
s646220142
p03556
u730769327
1591261228
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38640
84
n=int(input()) for i in range(n): if i**2>n: ans=(i-1)**2 break print(ans)
s951703667
p03556
u730769327
1591261120
Python
PyPy3 (2.4.0)
py
Runtime Error
175
38512
84
n=int(input()) for i in range(n): if i**2>n: ans=(i-1)**2 break print(ans)
s134296977
p03556
u022215787
1590784361
Python
Python (3.4.3)
py
Runtime Error
17
2940
52
n = int(input()) import math print(int(math.sqrt(n))