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
s758009620
p03556
u460468647
1590455757
Python
Python (3.4.3)
py
Runtime Error
36
5048
67
n = int(input()) import fractions print(fractions.floor(n**0.5)**2)
s001276013
p03556
u611090896
1590270770
Python
Python (3.4.3)
py
Runtime Error
17
2940
36
N = int(input()) print(int(N**(0.5))
s915816380
p03556
u551109821
1590165343
Python
Python (3.4.3)
py
Runtime Error
27
2940
90
N = int(input()) for i in range(N): if i**2 > N: print(i-1)**2 exit()
s223799082
p03556
u970809473
1589418434
Python
Python (3.4.3)
py
Runtime Error
17
2940
96
n = int(input()) ans = 0 for i in range(pow(n,1/2)+1): if i**2 <= n: ans = i**2 print(ans)
s351670137
p03556
u681323954
1588297708
Python
Python (3.4.3)
py
Runtime Error
18
2940
62
c=1 for i in range(int(input())): if i**2<=n:c=i**2 print(c)
s172985479
p03556
u229518917
1587577553
Python
Python (3.4.3)
py
Runtime Error
37
2940
100
N=int(input()) for t in range(N//2): if t**2<=N: i=t**2 else: break print(i)
s174540427
p03556
u869265610
1587156600
Python
Python (3.4.3)
py
Runtime Error
17
2940
40
X = int(input()) print(int(X**0.5)**2)
s302258923
p03556
u869265610
1587156564
Python
Python (3.4.3)
py
Runtime Error
18
2940
38
X=int(input()) print(int(X**0.5)**2)
s630174899
p03556
u869265610
1587156413
Python
Python (3.4.3)
py
Runtime Error
18
2940
39
X=int(input()) print (int(X**0.5)**2)
s201778290
p03556
u869265610
1587156311
Python
Python (3.4.3)
py
Runtime Error
17
2940
36
X=int(input()) print (int(X**0.5))
s425140114
p03556
u637918426
1586962875
Python
Python (3.4.3)
py
Runtime Error
17
2940
170
N = int(input()) count = 1 while count ** 2 <= N: count += 1 print((count-1)**2)N = int(input()) count = 1 while count ** 2 <= N: count += 1 print((count-1)**2)
s743582531
p03556
u519939795
1586635833
Python
Python (3.4.3)
py
Runtime Error
17
2940
9
Not found
s828752237
p03556
u440161695
1585831757
Python
Python (3.4.3)
py
Runtime Error
17
2940
82
N=int(input()) for i in range(N): if (i**2)>N: break: print(max((i-1)**2,1))
s545116857
p03556
u504836877
1585105106
Python
Python (3.4.3)
py
Runtime Error
17
2940
74
n=int(input) ans = 1 while pow(ans,2) <= n: ans += 1 print(pow(ans-1,2))
s055585268
p03556
u504836877
1585104991
Python
Python (3.4.3)
py
Runtime Error
18
3064
73
n=int(input) ans = 1 while ans**2 <= n: ans += 1 ans -= 1 print(ans**2)
s937668322
p03556
u863370423
1584760833
Python
Python (3.4.3)
py
Runtime Error
21
2940
102
a=int(input()) for i in range(1,a+1): if(i*i)>a: j=i-1 break; print(j*j);
s335367652
p03556
u816631826
1584760787
Python
PyPy3 (2.4.0)
py
Runtime Error
172
38256
152
import math n = int(input()) for i in the range(n+1): ans= math.sqrt(i) ans= str(ans) if "." not in ans: print(ans) break
s059817172
p03556
u723583932
1584318830
Python
Python (3.4.3)
py
Runtime Error
17
2940
63
#abc077 b import math n=int(input()) m=int(sqrt(n)) print(m*m)
s091393194
p03556
u480038302
1584125993
Python
Python (3.4.3)
py
Runtime Error
159
12396
139
import numpy as np n = int(input()) a = 0 m = int(n**0.5) for i in range(np.ceil(m)): if i**2 > n: break a += 1 print(a**2)
s879514576
p03556
u137808818
1583691071
Python
Python (3.4.3)
py
Runtime Error
17
2940
33
n = int(input()) print(int(n**.5)
s684929354
p03556
u785066634
1583603324
Python
Python (3.4.3)
py
Runtime Error
2104
2940
282
n=int(input()) a=0 l=[] for a in range(1,n+1): for i in range(1,n): if a==i**2: #print(a,i) l.append(a) print(max(l))
s888194299
p03556
u549579601
1581964983
Python
PyPy3 (2.4.0)
py
Runtime Error
176
38512
86
n = int(input()) for i in range(n//2): if i**2 > n: break print((i-1)**2)
s918003088
p03556
u368796742
1581044711
Python
Python (3.4.3)
py
Runtime Error
17
2940
33
print(int(int(input()))**0.5)**2)
s241693610
p03556
u047816928
1580273283
Python
Python (3.4.3)
py
Runtime Error
18
2940
62
N = input(input()) k = 1 while k*k<=N: k+=1 print((k-1)*(k-1))
s211095437
p03556
u934788990
1579538976
Python
Python (3.4.3)
py
Runtime Error
27
2940
112
n = int(input()) ans = 0 for i in range(n): a = i**2 if a>n: b = i break print((b-1)**2)
s798126115
p03556
u764860452
1576780941
Python
Python (3.4.3)
py
Runtime Error
17
2940
222
#include <bits/stdc++.h> #define rep(i,n) for (int i=0; i<(n); i++) typedef long long ll; using namespace std; int main(){ int N; cin >> N; int i=1; while(N>=i*i){ i++; } cout << (i-1)*(i-1); }
s274900877
p03556
u609814378
1576536572
Python
PyPy3 (2.4.0)
py
Runtime Error
2106
41760
287
N = int(input()) ans1 = [] ans2 = [] for i in range(1,N): for j in range(1,N): if i == j and i*j == N: ans1.append(i*j) elif i == j and i*j <= N: ans2.append(i*j) if ans1 != 0: print(max(ans1)) else: print(max(ans2))
s707206541
p03556
u609814378
1576536398
Python
Python (3.4.3)
py
Runtime Error
2104
3064
286
N = int(input()) ans1 = [] ans2 = [] for i in range(1,N): for j in range(1,N): if i == j and i*j == N: ans1.append(i*j) elif i == j and i*j <= N: ans2.append(i*j) if ans1 != 0: print(max(ans1)) else: print(max(ans2))
s694746337
p03556
u518042385
1576113745
Python
Python (3.4.3)
py
Runtime Error
17
2940
33
print((int((input())**(1/2)))**2)
s547439916
p03556
u119655368
1576028289
Python
Python (3.4.3)
py
Runtime Error
17
2940
108
s = int(input()) for i in range(s): if math.sqrt(s - i).is_integer(): print(s - i) break
s337048586
p03556
u503111914
1574881809
Python
Python (3.4.3)
py
Runtime Error
18
2940
113
N = int(input()) result = 0 for i in range(N**0.5): if i**2 <= N: result = i else: None print(result)
s254227148
p03556
u867848444
1573955778
Python
Python (3.4.3)
py
Runtime Error
2279
3316
150
n=int(input()) l=list(range(1,n+1)) l=sorted(l,reverse=True) ans=0 for i in l: if pow(i,0.5)%1==0: ans=i break print(ans)
s793611059
p03556
u633548583
1573765849
Python
Python (3.4.3)
py
Runtime Error
17
2940
95
n=int(input()) m==1 for i in range(2,100000): if i**2<=n: m=max(i,m) print(m)
s008123970
p03556
u633548583
1573765785
Python
Python (3.4.3)
py
Runtime Error
17
2940
93
n=int(input()) m==1 for i in range(100000): if i**2<=n: m=max(i,m) print(m)
s797887294
p03556
u633548583
1573765756
Python
Python (3.4.3)
py
Runtime Error
17
2940
98
n=int(input()) m==1 for i in range(100000): if i**2<=n: m=max(i,m) print(int(m))
s291004772
p03556
u934868410
1573665699
Python
PyPy3 (2.4.0)
py
Runtime Error
159
38256
46
import math print(int(math.sqrt(int(input())))
s675221056
p03556
u246572032
1571427367
Python
Python (3.4.3)
py
Runtime Error
16
2940
38
n = int(input()) print(int((n**.5)**2)
s782396357
p03556
u280552586
1570035834
Python
Python (3.4.3)
py
Runtime Error
43
2940
121
n = int(input()) for i in range(1, n): if i**2 <= n: ans = min(n, i**2) else: break print(ans)
s367472327
p03556
u528720841
1569801524
Python
Python (3.4.3)
py
Runtime Error
17
2940
150
import math N = int(input()) int ans = 0; for i in range(1, math.sqrt(N+1)): if(i == int(math.sqrt(i))*int(math.sqrt(i))): ans = i print(i)
s035544977
p03556
u937642029
1568667716
Python
Python (3.4.3)
py
Runtime Error
184
3060
220
n=int(input()) ans=1 for i in range(n): i=n-i for j in range(3): j+=int(i**0.5)-1 if(i//j==j and i%j==0): ans=i break if(ans!=1): break print(ans)
s945059242
p03556
u731362892
1567790767
Python
Python (3.4.3)
py
Runtime Error
65
7832
113
n=int(input()) s=[i**2 for i in range(1,10**5)] q=sorted(s,reverse=True) w=0 while q[w]>=n: w+=1 print(q[w])
s912211973
p03556
u891518152
1567638134
Python
PyPy3 (2.4.0)
py
Runtime Error
2106
41580
102
N = int(input()) L = [] for i in range(int(N/2)): if i**2<=N: L.append(i**2) print(max(L))
s807856770
p03556
u003501233
1567615928
Python
Python (3.4.3)
py
Runtime Error
17
2940
60
import math N=int(input()) n=math.sqart(N) print(int(n)**2)
s581038041
p03556
u003501233
1567615892
Python
Python (3.4.3)
py
Runtime Error
17
2940
60
import math N=int(input()) n=math.sqart(n) print(int(n)**2)
s988245794
p03556
u273038590
1566742838
Python
Python (3.4.3)
py
Runtime Error
18
3064
119
N=int(input()) for i in range(1,N+1): if i*i>N: s=(i-1)**2 break elif i=1: s=1 print(s)
s942416821
p03556
u273038590
1566742799
Python
Python (3.4.3)
py
Runtime Error
17
2940
119
N=int(input()) for i in range(1,N+1): if i*i>N: s=(i-1)**2 break elif i=0: s=0 print(s)
s436448077
p03556
u273038590
1566742741
Python
Python (3.4.3)
py
Runtime Error
21
2940
93
N=int(input()) for i in range(1,N+1): if i*i>N: s=(i-1)**2 break print(s)
s260766734
p03556
u273038590
1566742680
Python
Python (3.4.3)
py
Runtime Error
21
2940
93
N=int(input()) for i in range(1,N+1): if i*i>N: s=(i-1)**2 break print(s)
s401829509
p03556
u273038590
1566742661
Python
Python (3.4.3)
py
Runtime Error
43
3536
106
N=int(input()) for i in range(1,N+1): print(i) if i*i>N: s=(i-1)**2 break print(s)
s073976553
p03556
u273038590
1566742433
Python
Python (3.4.3)
py
Runtime Error
21
2940
88
N=int(input()) for i in range(1,N+1): if i*i>N: s=i-1 break print(s)
s760490851
p03556
u619785253
1565475767
Python
Python (3.4.3)
py
Runtime Error
35
2940
132
N = int(input()) import math for i in range(N,1,-1): sq = math.sqrt(i) if sq.is_integer(): ans = i break print(ans)
s587979840
p03556
u116002573
1564954175
Python
Python (3.4.3)
py
Runtime Error
17
2940
66
import math N = int(input()) v = math.sqrt(N) pritn(int(v)*int(v))
s957828608
p03556
u116002573
1564953907
Python
Python (3.4.3)
py
Runtime Error
17
2940
114
import math def main(): N = int(input()) v = int(math.sqrt(N)) print(v*v) if __name__ == "__main__": main()
s243416067
p03556
u116002573
1564953632
Python
Python (3.4.3)
py
Runtime Error
17
2940
61
import math N = int(input()) v = int(math.sqrt(N)) return v*v
s892045148
p03556
u116002573
1564953445
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
import math v = int(math.sqrt(N)) print(v*v)
s864713628
p03556
u116002573
1564953322
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
import math v = int(math.sqrt(N)) return v*v
s842533773
p03556
u514894322
1564929425
Python
Python (3.4.3)
py
Runtime Error
17
2940
49
import math print(int(math.sqrt(int(input()))**2)
s081559038
p03556
u626337957
1564425054
Python
Python (3.4.3)
py
Runtime Error
17
3064
101
N = input() num = 1 while True: if num**2 > N: print((num-1)**2) break else: num += 1
s433473245
p03556
u668503853
1562945845
Python
Python (3.4.3)
py
Runtime Error
23
2940
91
n=int(input()) for i in range(1,n): a=i*i if a>n: a= (i-1)*(i-1) break print(a)
s658151952
p03556
u828766688
1561695188
Python
Python (3.4.3)
py
Runtime Error
19
3060
103
N = int(input().split()) i = 0 while True: if i ** 2 > N: print ((i-1)**2) break
s475868244
p03556
u828766688
1561695158
Python
Python (3.4.3)
py
Runtime Error
18
3060
98
N = input().split() i = 0 while True: if i ** 2 > N: print ((i-1)**2) break
s538415342
p03556
u172111219
1560039992
Python
PyPy3 (2.4.0)
py
Runtime Error
292
48112
129
n = int(input()) def solve(i,n): if i**2 >n: return print((i-1)**2) else: return solve(i+1,n) solve(1,n)
s604186045
p03556
u706695185
1558651853
Python
Python (3.4.3)
py
Runtime Error
17
2940
104
N=gets.to_i ans = 0 sq = (N**(0.5)).to_i (sq..sq+10).each do |i| ans = i*i if i*i <= N end puts ans
s698318488
p03556
u492747876
1558533650
Python
Python (3.4.3)
py
Runtime Error
17
2940
164
#include <bits/stdc++.h> using namespace std; int main(){ int N; cin >> N; int i =1; while (i*i <= N) { i++; } cout << (i-1)^2 << endl; }
s114035477
p03556
u919633157
1557762863
Python
Python (3.4.3)
py
Runtime Error
38
2940
65
n=int(input()) i=1 while i**2<n: ans=i**2 i+=1 print(ans)
s468789984
p03556
u055941944
1557187147
Python
Python (3.4.3)
py
Runtime Error
21
2940
83
n=int(input()) k=int(input()) x=1 for i in range(n): x=min(x*2,x+k) print(x)
s111250321
p03556
u482709947
1556993198
Python
Python (3.4.3)
py
Runtime Error
17
2940
74
#coding:utf-8 a = int(input()) while i*i <= a: i=i+1 i=i-1 print(i*i)
s857268378
p03556
u482709947
1556993100
Python
Python (3.4.3)
py
Runtime Error
17
2940
74
#coding:utf-8 a = int(input()) while i*i <= a: i=i+1 i=i-1 print(i*i)
s371242766
p03556
u482709947
1556993011
Python
Python (3.4.3)
py
Runtime Error
17
3060
182
# coding:utf-8 abc =input().split() a,b,c= int(abc[0]),int(abc[1]),int(abc[2]) if a+b == c: print("+") if a-b == c: print("?") elif a-b == c: print("-") else: print("!")
s878005963
p03556
u900727536
1556946760
Python
Python (3.4.3)
py
Runtime Error
17
2940
49
N = int(input()) print(int(sqrt(N))*int(sqrt(N)))
s528589925
p03556
u903948194
1554672539
Python
Python (3.4.3)
py
Runtime Error
17
2940
51
n = math.sqrt(int(input())) print(math.floor(n)**2)
s571827910
p03556
u189575640
1554583494
Python
Python (3.4.3)
py
Runtime Error
27
2940
207
from sys import exit # A,B,C = [int(n) for n in input().split()] N = int(input()) # a = [int(input()) for _ in range(N)] for i in range(1,N+1): if(i**2>N): anss = i-1 break print(anss**2)
s933814303
p03556
u694810977
1554066150
Python
Python (3.4.3)
py
Runtime Error
2328
7520
183
import math N = int(input()) list_N = list(range(1,N+1)) max = -9999 for i in range(N): if max < int(math.sqrt(list_N[i])): max = int(math.sqrt(list_N[i])) print(max*max)
s559976058
p03556
u694810977
1554065889
Python
Python (3.4.3)
py
Runtime Error
2478
7520
200
import math N = int(input()) list_N = list(range(1,N+1)) max = -999999999 sqrt_N = [] for i in range(N): if max < int(math.sqrt(list_N[i])): max = int(math.sqrt(list_N[i])) print(max*max)
s555825622
p03556
u363610900
1553636611
Python
Python (3.4.3)
py
Runtime Error
17
3060
103
N = (input()) nums = [] for i in range(N): if i**2 <= N: nums.append(i) print(max(nums)**2)
s269550162
p03556
u732465302
1553562852
Python
Python (3.4.3)
py
Runtime Error
23
2940
59
n=int(input()) i=1 while i*i<=n: i+=1 print(i-1)*(i-1)
s927988602
p03556
u732465302
1553562610
Python
Python (3.4.3)
py
Runtime Error
18
2940
52
n=int(input()) i=1 while i^2<=N: i+=1 print(N-1)
s957212283
p03556
u399261731
1553003798
Python
Python (3.4.3)
py
Runtime Error
17
2940
262
fun main(args: Array<String>) { var N = readLine()!!.toLong() for(i in N downTo 0){ var j = i.toDouble() var sq = (Math.sqrt(j)).toLong() if(sq * sq == i){ println(i) break } } }
s333668525
p03556
u544050502
1551751660
Python
Python (3.4.3)
py
Runtime Error
18
2940
94
N=int(input()) while for i in range(1,N+1): if i**2>N: break answer=i**2 print(answer)
s933063286
p03556
u544050502
1551751546
Python
Python (3.4.3)
py
Runtime Error
18
3064
83
N=int(input()) while for i in N: if i**2>N: break answer=i**2 print(answer)
s552454305
p03556
u338225045
1551739392
Python
Python (3.4.3)
py
Runtime Error
18
3060
92
N = int( input() ) for i in range( int(N**0.5)+1 ): ans = max( ans, i*i ) print( ans )
s241674450
p03556
u782685137
1547069340
Python
Python (3.4.3)
py
Runtime Error
18
2940
33
print(int(sqrt(int(input())))**2)
s855756276
p03556
u572561929
1546968769
Python
Python (3.4.3)
py
Runtime Error
23
2940
106
N = int(input()) for i in range(N): if i * i > N: ans = (i - 1) ** 2 break print(ans)
s947647051
p03556
u845427284
1546639363
Python
Python (3.4.3)
py
Runtime Error
18
2940
66
import math n = int(input()) a = round(0, sqrt(n)) print(a ** 2)
s085654127
p03556
u887207211
1545860397
Python
Python (3.4.3)
py
Runtime Error
19
2940
78
x = int(N**(0.5)) if(N%x == 0): print(N) else: print((int(N**(0.5))-1)**2)
s078619284
p03556
u272557899
1542406046
Python
Python (3.4.3)
py
Runtime Error
20
2940
95
n = int(input()) for i in range(n,-1,-1): if sqrt(i) == int(sqrt(i)): print(i) exit()
s958106115
p03556
u090225501
1541205961
Python
Python (3.4.3)
py
Runtime Error
17
2940
71
from math import ceil, sqrr n = int(input()) print(ceil(sqrt(n)) ** 2)
s621949666
p03556
u426108351
1540412549
Python
PyPy3 (2.4.0)
py
Runtime Error
168
38640
380
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() ans = 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[N-1-k]: ans += ...
s405420314
p03556
u268318377
1539200422
Python
Python (3.4.3)
py
Runtime Error
17
2940
51
import math print(int(math.sqrt(int(input()))) ** 2
s038655723
p03556
u940102677
1538378403
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
print(int(sqrt(int(input())))^2)
s005174254
p03556
u761989513
1535510230
Python
Python (3.4.3)
py
Runtime Error
26
2940
91
n = int(input()) for i in range(1, n): if n < i ** 2: break print((i - 1) ** 2)
s226153804
p03556
u457901067
1535211994
Python
Python (3.4.3)
py
Runtime Error
17
2940
66
from math import floor, sqrt print(floor(sqrt(int(input())) ** 2)
s254122354
p03556
u699994820
1534777696
Python
Python (3.4.3)
py
Runtime Error
17
2940
91
#2 n = int(input()) p = range(1,10**5) q = 1 while i < n : i == p**2 q = i print(q)
s696438272
p03556
u699994820
1534776505
Python
Python (3.4.3)
py
Runtime Error
17
2940
112
#1 x,y,z=map(int, input().split()) count=0 for i in range(x,y+1) : if i%z==0 : count+=1 print(count)
s944350160
p03556
u201234972
1533164100
Python
Python (3.4.3)
py
Runtime Error
27
2940
98
N = int(input()) for i in range(N+1): if N < i**2: j = i - 1 break print(j**2)
s272298709
p03556
u201234972
1533164026
Python
Python (3.4.3)
py
Runtime Error
27
2940
96
N = int(input()) for i in range(N): if N < i**2: j = i - 1 break print(j**2)
s056640869
p03556
u796060588
1533007059
Python
Python (2.7.6)
py
Runtime Error
2257
6504
235
# utf-8: import math as np def main(): n = int(raw_input()) for i in range(n, 0, -1): sqrt = np.sqrt(i) if sqrt - int(sqrt) == 0: print(i) break if __name__ == '__main__': main()
s998304498
p03556
u796060588
1533005914
Python
Python (2.7.6)
py
Runtime Error
2439
22844
236
# utf-8: import numpy as np def main(): n = int(raw_input()) for i in range(n, 0, -1): sqrt = np.sqrt(i) if sqrt - int(sqrt) == 0: print(i) break if __name__ == '__main__': main()
s186638068
p03556
u796060588
1533005787
Python
Python (2.7.6)
py
Runtime Error
2256
22972
298
# utf-8: import numpy as np def main(): n = int(raw_input()) if n == 1: print(n) else: for i in range(n, 0, -1): sqrt = np.sqrt(n) if sqrt - int(sqrt) == 0: print(n) break if __name__ == '__main__': main()
s782414157
p03556
u796060588
1533005602
Python
Python (2.7.6)
py
Runtime Error
2257
22972
303
# utf-8: import numpy as np def main(): n = int(raw_input()) if n == 1: print(n) else: for i in range(n): sqrt = np.sqrt(n - i + 1) if sqrt - int(sqrt) == 0: print(n - i) break if __name__ == '__main__': main()