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
s111945147
p03543
u127856129
1521393323
Python
Python (3.4.3)
py
Runtime Error
17
2940
86
a=input() if a[0]=a[1]=a[2] or a[1]=a[2]=a[3]: print("Yes") else: print("No")
s993648619
p03543
u127856129
1521392753
Python
Python (3.4.3)
py
Runtime Error
17
2940
97
a=list(int(input())) if a[0]=a[1]=a[2] or a[1]=a[2]=a[3]: print("Yes") else: print("No")
s683678781
p03543
u127856129
1521392700
Python
Python (3.4.3)
py
Runtime Error
17
2940
91
a=list(input()) if a[0]=a[1]=a[2] or a[1]=a[2]=a[3]: print("Yes") else: print("No")
s781086255
p03543
u050428930
1519075780
Python
Python (3.4.3)
py
Runtime Error
18
3188
93
a,b,c,d = list(input()) #print(b) if a==b==c or b==c==d: print("Yes") else: print("No
s061362598
p03543
u428487608
1518586847
Python
Python (3.4.3)
py
Runtime Error
17
2940
181
# -*- coding: utf-8 -*- n = int(input()) li = [int(x) for x in list(str(n))] for i in range(n-2): if li[i] == li[i+1] == li[i+2]: print("Yes") exit() print("No")
s022998605
p03543
u428487608
1518586714
Python
Python (3.4.3)
py
Runtime Error
17
3060
193
# -*- coding: utf-8 -*- n = int(input()) li = [int(x) for x in list(str(n))] for i in range(n-2): if li[i] == li[i+1] and li[i+1] == li[i+2]: print("Yes") exit() print("No")
s904798819
p03543
u428487608
1518586596
Python
Python (3.4.3)
py
Runtime Error
17
3060
198
# -*- coding: utf-8 -*- n = int(input()) li = [int(x) for x in list(str(n))] for i in range(len(n)-2): if li[i] == li[i+1] and li[i+1] == li[i+2]: print("Yes") exit() print("No")
s665028894
p03543
u748135969
1518371404
Python
Python (3.4.3)
py
Runtime Error
17
2940
102
n = input() if ((n[0] == n[1] == n[2] or (n[1] == n[2] == n[3])): print("Yes") else: print("No")
s022651667
p03543
u748135969
1518371362
Python
Python (3.4.3)
py
Runtime Error
18
2940
100
n = input() if (n[0] == n[1] == n[2] or (n[1] == n[2] == n[3]): print("Yes") else: print("No")
s067037536
p03543
u748135969
1518371188
Python
Python (3.4.3)
py
Runtime Error
18
3060
125
n = int(input()) if ((n[0] == [1] and n[1] == n[2]) or (n[1] == n[2] and n[2] == n[3])): print("Yes") else: print("No")
s337328763
p03543
u748135969
1518370867
Python
Python (3.4.3)
py
Runtime Error
18
3064
159
n = int(input()) if ((n[0] == [1] and n[1] == n[2]) or (n[1] == n[2] and n[2] == n[3]) or (n[3] == n[0] and n[0] == [1])): print("Yes") else: print("No")
s178618054
p03543
u748135969
1518370803
Python
Python (3.4.3)
py
Runtime Error
17
3060
156
n = int(input()) if (n[0] == [1] and n[1] == n[2]) or (n[1] == n[2] and n[2] == n[3]) or (n[3] == n[0] and n[0] == [1]): print("Yes") else: print("No")
s978464739
p03543
u087279476
1516917104
Python
Python (3.4.3)
py
Runtime Error
18
2940
21
print("Yes")
s422016543
p03543
u087279476
1516916845
Python
Python (3.4.3)
py
Runtime Error
17
2940
128
n = list(int(input())) for i in range(2): if n[i]==n[i+1]==n[i+2]: break print("Yes") if n[1]!=n print("No")
s062806084
p03543
u087279476
1516916790
Python
Python (3.4.3)
py
Runtime Error
17
2940
123
n = list(input()) for i in range(2): if n[i]==n[i+1]==n[i+2]: break print("Yes") if n[1]!=n print("No")
s904565308
p03543
u350179603
1516509189
Python
Python (3.4.3)
py
Runtime Error
17
2940
187
n = int(input()) l0 = 2 l1 = 1 if n == 1: print(l1) else: for i in range(2, n+1): if i == 2: li = l0 lj = l1 l = li + lj li = lj lj = l  print(l)
s933967497
p03543
u046136258
1514006840
Python
Python (3.4.3)
py
Runtime Error
17
2940
65
if len(sed(list(input())))<=2: print('Yes') else: print('No')
s773915578
p03543
u744021017
1513407018
Python
Python (3.4.3)
py
Runtime Error
151
12232
1086
import numpy as np from copy import deepcopy def dijkstra(N, matrix, s): d = [np.inf for _ in range(N)] d[s] = 0 prev = [-1 for _ in range(N)] Q = set([i for i in range(N)]) def min_index(): mi = np.inf mii = 0 for i in Q: if d[i] < mi: mii = i ...
s988093004
p03543
u941884460
1513015030
Python
Python (3.4.3)
py
Runtime Error
17
2940
138
n = input() count=0 for i in range(len(n)-1): if n[i] = n[i+1]: count +1 if count >=3: print("Yes") else: print("No")
s713857580
p03543
u257974487
1512885215
Python
Python (3.4.3)
py
Runtime Error
17
2940
119
N = input() if N[0] == N[1] == N[2] or N[1] == N[2] == N[3]: print("Yes") else: print("No")
s793692586
p03543
u257974487
1512885185
Python
Python (3.4.3)
py
Runtime Error
17
2940
98
N = input() if N[0] == N[1] == N[2] or N[1] == N[2] == N[3]: print("Yes") else: print("No)
s465509098
p03543
u562016607
1512772374
Python
Python (3.4.3)
py
Runtime Error
19
3064
880
st=input().split() H=int(st[0]);W=int(st[1]) c=[[0 for i in range(10)] for i in range(10)] A=[[0 for i in range(W)]for i in range(H)] for i in range(10): st=input().split() for j in range(10): c[i][j]=int(st[j]) for i in range(H): st=input().split() for j in range(W): A[i][j]=int(st[j]) ...
s206833141
p03543
u562016607
1512771912
Python
Python (3.4.3)
py
Runtime Error
19
3064
828
st=input().split() H=int(st[0]);W=int(st[1]) c=[[0 for i in range(10)] for i in range(10)] A=[[0 for i in range(W)]for i in range(H)] for i in range(10): st=input().split() for j in range(10): c[i][j]=int(st[j]) for i in range(H): st=input().split() for j in range(W): A[i][j]=int(st[j]) ...
s201589275
p03543
u951492009
1512519254
Python
Python (3.4.3)
py
Runtime Error
17
2940
102
N = input() if(N[0] = N[1] = N[2] or N[1] = N[2] = N[3]): print('Yes') else: print('No')
s754859972
p03543
u951492009
1512505724
Python
Python (3.4.3)
py
Runtime Error
17
2940
102
N = input() if(N[0] = N[1] = N[2] or N[1] = N[2] = N[3]): print('Yes') else: print('No')
s289102258
p03543
u966000628
1512448858
Python
Python (2.7.6)
py
Runtime Error
11
2568
122
N = int(raw_input()) lis = [None]*86 lis[0] = 2 lis[1] = 1 for i in xrange(84): lis[i+2] = lis[i+1] + lis[i] print lis[N]
s492566014
p03543
u787988531
1512424161
Python
Python (2.7.6)
py
Runtime Error
12
2692
125
str = raw_input() print "Yes" if((str[0] == str[1] and str[1] == str[2]) or (str[1] == str[2] and str[2] == str[3]))else "No
s499469217
p03543
u787988531
1512423802
Python
Python (2.7.6)
py
Runtime Error
10
2568
175
str = raw_input()[0:-1] print "Yes" if((str[0] == str[1] and str[1] == str[2] and str[2] == str[3]) or (str[1] == str[2] and str[2] == str[3] and str[3] == str[4])) else "NO"
s573716079
p03543
u787988531
1512423681
Python
Python (2.7.6)
py
Runtime Error
12
2692
168
str = raw_input() print "Yes" if((str[0] == str[1] and str[1] == str[2] and str[2] == str[3]) or (str[1] == str[2] and str[2] == str[3] and str[3] == str[4])) else "NO"
s390402046
p03543
u022674544
1512008707
Python
Python (3.4.3)
py
Runtime Error
18
3060
145
n = int(input()) if (n[0] == n[1]) and (n[1] == n[2]): print('Yes') elif (n[1] == n[2]) and (n[2] == n[4]): print('Yes') else: print('No')
s769199978
p03543
u022674544
1512008479
Python
Python (3.4.3)
py
Runtime Error
22
3316
136
n = int(input()) if n[0] == n[1] and n[1] == n[2]: print('Yes') elif n[1] == n[2] and n[2] == n[3]: print('Yes') else: print('No')
s524567416
p03543
u122873963
1511305930
Python
Python (3.4.3)
py
Runtime Error
17
3064
498
a = [int(i) for i in list(input())] enzan = ['+', '+', '+'] res = 0 for i in range(2): if i == 0: enzan[0] = '+' b = a[0] + a[1] else: enzan[0] = '-' b = a[0] - a[1] for j in range(2): if j == 0: enzan[1] = '+' c = b + a[2] else: enzan[1] = '-' c = b - a[2] for k in range(2): if k == 0: ...
s767956898
p03543
u122873963
1511303777
Python
Python (3.4.3)
py
Runtime Error
18
3060
177
N = int(input()) res = [0 for i in range(1000)] res[1] = 2 res[2] = 1 def lucas(N): for i in range(3, N+1): res[i] = res[i - 1] + res[i - 2] return res[N] print(lucas(N+1))
s052853177
p03543
u122873963
1511303034
Python
Python (3.4.3)
py
Runtime Error
79
4760
195
N = int(input()) res = [0 for i in range(100000)] def lucas(N): if N == 0: return 2 elif N == 1: return 1 elif res[N] != 0: return res[N] return lucas(N-1) + lucas(N-2) print(lucas(N))
s384224524
p03543
u737210825
1511302346
Python
Python (3.4.3)
py
Runtime Error
18
2940
99
a = list(input()) if a[0] == a[1] == a[2] or a[1] == a[2] == a[3] print("Yes") else: print("No")
s169064376
p03543
u737210825
1511302255
Python
Python (3.4.3)
py
Runtime Error
18
2940
129
a = list(input()) if ((a[0] == a[1]) and (a[1] == a[2])) or ((a[1] == a[2]) and (a[2] == a[3])) print("Yes") else: print("No")
s878395778
p03543
u737210825
1511301831
Python
Python (3.4.3)
py
Runtime Error
17
2940
182
a = int(input()) if ((a %10 == (a / 10) % 10 ) and (a %10 == (a / 100) % 10) or (((a / 10) %10 == (a / 100) % 10 ) and ((a / 10) %10 == (a / 1000)): print("Yes") else: print("No")
s503398829
p03543
u316170293
1511242160
Python
Python (3.4.3)
py
Runtime Error
17
3056
175
def main(): S = raw_input() if (S[0] == S[1] and S[1] == S[2]) or (S[2] == S[1] and S[3] == S[2]): print("Yes") else: printf("No") if __name__ == '__main__': main()
s376850279
p03543
u316170293
1511242146
Python
Python (2.7.6)
py
Runtime Error
10
2568
175
def main(): S = raw_input() if (S[0] == S[1] and S[1] == S[2]) or (S[2] == S[1] and S[3] == S[2]): print("Yes") else: printf("No") if __name__ == '__main__': main()
s391356246
p03543
u316170293
1511242076
Python
Python (2.7.6)
py
Runtime Error
10
2568
171
def main(): S = input() if (S[0] == S[1] and S[1] == S[2]) or (S[2] == S[1] and S[3] == S[2]): print("Yes") else: printf("No") if __name__ == '__main__': main()
s149434507
p03543
u316170293
1511242065
Python
Python (3.4.3)
py
Runtime Error
17
3060
171
def main(): S = input() if (S[0] == S[1] and S[1] == S[2]) or (S[2] == S[1] and S[3] == S[2]): print("Yes") else: printf("No") if __name__ == '__main__': main()
s715817657
p03543
u926678805
1511221808
Python
Python (3.4.3)
py
Runtime Error
17
2940
139
# coding: utf-8 s=input() d=[] for c in s: if s.count(c)>=3: d.append(c) if d[0]*3 in s: print('Yes') else: print('No')
s582303058
p03543
u880646180
1511154539
Python
Python (3.4.3)
py
Runtime Error
18
3064
547
h, w = [int(i) for i in input().split()] k = [] wl = [] for i in range(0, 10): k.append([int(i) for i in input().split()]) for i in range(0, h): wl.append([int(i) for i in input().split()]) n = {1:0} while len(n) < 10: c = 1000 mn = 10 for a in n.keys(): a2 = int(a) for b in range(0, 10): ...
s680404771
p03543
u351241495
1511153820
Python
Python (3.4.3)
py
Runtime Error
18
3060
239
while(True): a = int(input()) b = a // 1000 c = (a - 1000 * b) // 100 d = a % 100 // 10 e=a%10 if ( b == c and c==d ): print('Yes') elif(c==d and d==e): print('Yes') else: print('No')
s280810041
p03543
u351241495
1511152897
Python
Python (3.4.3)
py
Runtime Error
17
2940
199
while(True): a = int(input()) b = a // 1000 c = (a - 1000 * b) // 100 d = a % 100 // 10 e=a%10 if (d == b == c or c==d==e): print('Yes') else: print('No')
s230858953
p03543
u351241495
1511152357
Python
Python (3.4.3)
py
Runtime Error
18
2940
178
while(True): a = int(input()) b = a // 1000 c = (a - 1000 * b) // 100 d = a % 100 // 10 if (d == b == c): print('Yes') else: print('No')
s465657414
p03543
u351241495
1511152286
Python
Python (3.4.3)
py
Runtime Error
17
3060
193
while(True): a = int(input("Enter a number")) b = a // 1000 c = (a - 1000 * b) // 100 d = a % 100 // 10 if (d == b == c): print('Yes') else: print('No')
s729633757
p03543
u351241495
1511152239
Python
PyPy3 (2.4.0)
py
Runtime Error
168
38384
193
while(True): a = int(input("Enter a number")) b = a // 1000 c = (a - 1000 * b) // 100 d = a % 100 // 10 if (d == b == c): print('Yes') else: print('No')
s434015677
p03543
u886545507
1511100373
Python
Python (2.7.6)
py
Runtime Error
10
2568
157
#ABC079C n=raw_input() s=[] for i in xrange(4): s.append(n[i]) if s[0]==s[1]==s[2] or s[1]==s[2]==s[3] or s[2]==s[3]==s[4]: print 'Yes' else: print 'No'
s635741771
p03543
u779602548
1511064601
Python
Python (3.4.3)
py
Runtime Error
17
3064
347
H, W = map(int, input().split()) C = [list(map(int, input().split())) for _ in range(10)] A = [list(map(int, input().split())) for _ in range(H)] for k in range(5): for i in range(10): for j in range(10): C[i][j] = min(C[i][j], C[i][k] + C[k][j]) print(sum([sum(map(lambda a: 0 if a == -1 else C[...
s405386149
p03543
u432780056
1511064030
Python
Python (2.7.6)
py
Runtime Error
10
2568
77
l = [2, 1] for x in xrange(100): l.append(l[-2] + l[-1]) print l[input()]
s698842919
p03543
u667024514
1511062072
Python
Python (3.4.3)
py
Runtime Error
17
2940
18
もうだめだ...
s766180557
p03543
u456877307
1511060967
Python
Python (2.7.6)
py
Runtime Error
11
2696
1017
N = raw_input() keys = ['+','-'] x = 0 check = True for key1 in keys: if key1 == '+' and check: x = int(N[0]) + int(N[1]) elif(key1 == '-' and check): x = int(N[0]) - int(N[1]) for key2 in keys: if key2 == '+' and check: x = x + int(N[2]) elif(key2 == '-' and che...
s819994327
p03543
u398613609
1511060591
Python
Python (3.4.3)
py
Runtime Error
16
2940
288
i = input() s = str(i) pre = "" a ="Yes" b = "No" count=0 for c in s: if pre == "": pre = c elif pre != c: pre = c count = count + 1 print(count) else: pass if count > 1: print(b) else: print(a)
s665397361
p03543
u667024514
1511060366
Python
Python (3.4.3)
py
Runtime Error
17
2940
446
r = int(input()) a = r[0] b = r[1] c = r[2] d = r[3] if a+b+c+d ==7: print(a+"+"+b+"+"+c+"+"+d"=7") elif a+b+c-d ==7: print(a+"+"+b+"+"+c+"-"+d"=7") elif a+b-c+d ==7: print(a+"+"+b+"-"+c+"+"+d"=7") elif a+b-c-d ==7: print(a+"+"+b+"-"+c+"-"+d"=7") elif a-b+c+d ==7: print(a+"-"+b+"+"+c+"+"+d"=7") elif a-b+c-d =...
s240819222
p03543
u158225062
1511060357
Python
Python (3.4.3)
py
Runtime Error
19
3060
224
#coding: utf-8 N_list = list(input()) if N_list[0] == N_list[1] == N_list[2]: print("Yes") elif N_list[1] == N_list[2] == N_list[3]: print("Yes") elif N_list[2] == N_list[3] == N_list[4]: print("Yes") else: print("No")
s394386107
p03543
u618512227
1511060290
Python
Python (3.4.3)
py
Runtime Error
17
3060
163
num = input().split() if num[0] == num[1] and num[1] == num[2]: print("Yes") elif num[1] == num[2] and num[2] == num[3]: print("Yes") else: print("No")
s711285540
p03543
u158225062
1511060131
Python
Python (3.4.3)
py
Runtime Error
17
2940
198
#coding: utf-8 N = input() N_list = list(N) if N_list[0] == N_list[1] == N_list[2] or N_list[1] == N_list[2] == N_list[3] or N_list[2] == N_list[3] == N_list[4]: print("Yes") else: print("No")
s114951127
p03543
u398613609
1511060026
Python
Python (3.4.3)
py
Runtime Error
17
2940
285
i = 1133 # l = input() s = str(i) pre = "" a ="Yes" count=1 for c in s: if pre == "": pre = c elif pre != c: break else: count = count + 1 continue if count == 3 or 4: a = "Yes" print(a) else: print("No")
s459178188
p03543
u398613609
1511059749
Python
Python (3.4.3)
py
Runtime Error
18
2940
279
#i = 1133 l = input() s = str(i) pre = "" a ="Yes" count=1 for c in s: if pre == "": pre = c elif pre != c: a = "No" break else: count = count + 1 continue if count == 3: a = "Yes" print(a)
s295653688
p03543
u781152930
1511059554
Python
Python (3.4.3)
py
Runtime Error
17
2940
228
# -*- coding: utf-8 -*- N = map(str, input().split()) out = "No" N_list = list(N) if N_list[0]==N_list[1] and N_list[0]==N_list[2]: out = "Yes" elif N_list[1]==N_list[2] and N_list[1]==N_list[3]: out = "Yes" print(out)
s139168033
p03543
u781152930
1511059513
Python
Python (3.4.3)
py
Runtime Error
17
3060
227
# -*- coding: utf-8 -*- N = map(str, input().split()) out = "No" N_list = list(N) if N_list[0]==N_list[1] and N_list[0]==N_list[2]: out = "Yes" elif N_list[1]==N_list[2] and N_list[1]==N_list[3]: out = "Yes" print(out)
s479386147
p03543
u398613609
1511059161
Python
Python (3.4.3)
py
Runtime Error
18
3056
298
num = [int(input()) for i in range(4)] #num = [1211, 111111, 33333, 33] n = 4 for i in num: print(i) s = str(i) pre = "" for c in s: if pre == "": pre = c elif pre == c: continue else: n = n - 1 break print(n)
s054584771
p03543
u190952243
1511059132
Python
Python (3.4.3)
py
Runtime Error
17
2940
129
n=int(input()) a=n//1000 n=n%1000 b=n//100 n=n%100 c=n//10 d=n%10 if b==c and (a==b or c==d): print("Yes") else: print("No")
s172977044
p03543
u432780056
1511058946
Python
Python (2.7.6)
py
Runtime Error
10
2568
103
s = raw_input() if set(s) <= 2 and (s[0] != s[1] or s[2] != s[3]): print 'Yes' else: print 'No'
s581773934
p03543
u352623442
1511058528
Python
Python (3.4.3)
py
Runtime Error
17
3060
206
N = int(input()) a = n[0] b = n[1] c = n[2] d = n[3] if a == b and b == c and c == d: print("Yes") elif a == b and b == c: print("Yes") elif b == c and c == d: print("Yes") else: print("No")
s718830401
p03543
u158225062
1511058457
Python
Python (3.4.3)
py
Runtime Error
17
3060
230
#coding: utf-8 N = input() N_list = list(N) if N_list[0] == N_list[1] == N_list[2]: print("Yes") elif N_list[1] == N_list[2] == N_list[3]: print("Yes") elif N_list[2] == N_list[3] == N_list[4]: print("Yes") else: print("No")
s677242001
p03543
u218984487
1511058265
Python
Python (3.4.3)
py
Runtime Error
17
2940
192
N = list(map(int, input())) ans = 'N' if N[0] == N[1] and N[0] == N[2]: ans = 'Y'¥ elif N[1] == N[2] and N[1] == N[3]: ans = 'Y' if ans == 'Y': print('Yes') else: print('No')
s070080730
p03543
u158225062
1511058196
Python
Python (3.4.3)
py
Runtime Error
17
3060
231
#coding: utf-8 N = input() N_list = list(N) if N_list[0] == N_list[1] == N_list[2]: print("Yes") elif N_list[1] == N_list[2] == N_list[3]: print("Yes") elif N_list[2] == N_list[3] == N_list[4]: print("Yes") else : print("No")
s867316508
p03543
u839857256
1511058188
Python
Python (3.4.3)
py
Runtime Error
16
2940
195
n = input() if n[0] == n[1]: if n[0] == n[2] or n[0] == n[3]: print("Yes") else: print("No") else: if n{1} != n[2]: print("No") else: print("Yes")
s744688167
p03543
u160414758
1511057966
Python
Python (3.4.3)
py
Runtime Error
17
3060
402
import sys,collections sys.setrecursionlimit(10**7) def Is(): return [int(x) for x in sys.stdin.readline().split()] def Ss(): return sys.stdin.readline().split() def I(): return int(sys.stdin.readline()) def S(): return input() x = S() c = 0 ans = "No" for i in range(len(x)): for j in range(i,len(x)-i): if...
s152116956
p03543
u125505541
1511057639
Python
Python (3.4.3)
py
Runtime Error
17
3064
157
N = input() n=1 p=-1 for i in range(4): t= N % 10 if p == t: n = n + 1 p=t N = int(N / 10) ans = "YES" if n >= 3 else "NO" print(ans)
s959180508
p03543
u952708174
1511057451
Python
Python (3.4.3)
py
Runtime Error
17
3060
153
N = input() if N[0]==N[1] and N[1]==N[2] and N[2]==N[3]: print('Yes') elif N[1]==N[2] and N[2]==N[3] and N[3]==N[4]: print('Yes') else: print('No')
s766276059
p03543
u552668967
1511057019
Python
Python (2.7.6)
py
Runtime Error
10
2572
112
from sys import stdin a = [0,2,1] for i in xrange(3,80): a.append(a[-1] + a[-2]) print a[int(stdin.readline())]
s511029116
p03544
u546853743
1600705544
Python
Python (3.8.2)
py
Runtime Error
24
9184
255
n=int(input()) s=[] s.append(2) s.append(1) if n==0: print('2') exit() elif n==1: print('1') exit() else: for i in range(2,86): k = s[i-2]+s[i-1] s.apend(k) if i==n-1: print(s[i]) exit()
s965913820
p03544
u546853743
1600705507
Python
Python (3.8.2)
py
Runtime Error
25
9004
251
n=input() s=[] s.append(2) s.append(1) if n==0: print('2') exit() elif n==1: print('1') exit() else: for i in range(2,86): k = s[i-2]+s[i-1] s.apend(k) if i==n-1: print(s[i]) exit()
s040549017
p03544
u546853743
1600705047
Python
Python (3.8.2)
py
Runtime Error
25
9052
126
n=input() s=[] s[0]=2 s[1]=1 for i in range(2,86): s[i] = s[i-2]+s[i-1] if i==n-1: print(s[i]) exit()
s312185080
p03544
u453055089
1600649304
Python
PyPy3 (7.3.0)
py
Runtime Error
94
74668
268
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int n; cin >> n; vector<ll> l(100); l[0] = 2; l[1] = 1; for (int i = 2; i <= n; i++) { l[i] = l[i-1] + l[i-2]; } cout << l[n] << endl; }
s293181008
p03544
u572032237
1600381054
Python
Python (3.8.2)
py
Runtime Error
31
9104
118
n = int(input()) l = [2, 1] for i in range(2, n + 1): li = l[i - 1] + l[i - 2] l.append(li) print(li)
s557693417
p03544
u732061897
1600226088
Python
Python (3.8.2)
py
Runtime Error
28
9016
129
N = int(input()) l_list = [2,1] for i in range(2,N+1): a = l_list[i-1] + l_list[i-2] l_list.append(a) print(l_list[i])
s968242072
p03544
u011872685
1599947928
Python
Python (3.8.2)
py
Runtime Error
27
9164
149
#79B N=int(input()) import ita data=ita.array.make1d(N+1) data[0]=2 data[1]=1 for i in range(2,N+1): data[i]=data[i-1]+data[i-2] print(data[N])
s021446702
p03544
u011872685
1599947868
Python
Python (3.8.2)
py
Runtime Error
32
9040
145
N=int(input()) import ita data=ita.array.make1d(N+1) data[0]=2 data[1]=1 for i in range(2,N+1): data[i]=data[i-1]+data[i-2] print(data[N])
s284058265
p03544
u629540524
1599499979
Python
Python (3.8.2)
py
Runtime Error
31
9068
80
n = int(input()) a = 2 b = 1 for i in range(n-1): c=b+a a,b=b,c print(c)
s832137405
p03544
u999503965
1599018195
Python
Python (3.8.2)
py
Runtime Error
28
9116
177
n=int(input()) if n==1: print(2) elif n==2: print(1) else: ans=0 num_1=2 num_2=1 for i in range(n-1): ans = num_1+num_2 num_1,num_2 = num_2, ans print(ans)
s274376156
p03544
u705418271
1599016336
Python
Python (3.8.2)
py
Runtime Error
29
8952
111
n=int(input()) L=[] L.append(2) L.append(1) for i in range(3,n+1): x=L[i-1]+L[i-2] L.append(x) print(L[n])
s093457630
p03544
u074220993
1598654223
Python
Python (3.8.2)
py
Runtime Error
21
9024
112
N = int(input()) L = [] * (N+1) L[0] = 2 L[1] = 1 for i in range(2,N+1): L[i] = L[i-1] + L[i-2] print(L[N])
s118621375
p03544
u760760982
1598412832
Python
Python (3.8.2)
py
Runtime Error
25
9144
95
n = int(input()) l = [2, 1] for i in range(n-1): L = l[i] + l[i+1] l.append(L) print(L)
s667860013
p03544
u650932312
1598189914
Python
Python (3.8.2)
py
Runtime Error
28
9144
106
N = int(input()) L_2 = 2 L_1 = 1 for i in range(N-1): L = L_1+L_2 L_2 = L_1 L_1 = L print(L)
s942055837
p03544
u006880673
1598142449
Python
PyPy3 (7.3.0)
py
Runtime Error
86
68600
172
N = int(input()) L = [0]*N if N==1: print(2) if N==2: print(1) else: L[0]=2 L[1]=1 for i in range(2,N-1): L[i] = L[i-1]+L[i-2] print(L[-1])
s288340668
p03544
u006880673
1598142322
Python
PyPy3 (7.3.0)
py
Runtime Error
81
74584
102
N = int(input()) L = [0]*N L[0]=2 L[1]=1 for i in range(2,N-1): L[i] = L[i-1]+L[i-2] print(L[N-1])
s036958544
p03544
u036914910
1597896219
Python
Python (3.8.2)
py
Runtime Error
29
9180
132
N = int(input()) l = [2,1] if N <= 2 : print(l[N]) exit() for i in range(2,N+1) : l.append(l[i-2] + l[i-1]) print(l[-1])
s195373512
p03544
u218838821
1597378460
Python
Python (3.8.2)
py
Runtime Error
30
8896
192
N = int(input()) for i in range(N+1): if i == 0: L_1 = 2 elif i == 1: L_2 = 1 else: L_3 = L_1 + L_2 L_1 = L_2 L_2 = L_3 print(L_3)
s073672160
p03544
u249987458
1597265593
Python
Python (3.8.2)
py
Runtime Error
28
9172
189
n = int(input()) if n == 0: print(2) elif n == 1: print(1) else: l1 = 2 l2 = 1 l3 = 0 for i in range(n-1): l3 = l1 l1 = l2 l2 += l3 print(l2)
s800635491
p03544
u739843002
1596926976
Python
Python (3.8.2)
py
Runtime Error
25
9040
129
N = input() L = [2, 1] if N == 1: print(1) else: i = 1 while i < N: L.append(L[i] + L[i-1]) i += 1 print(L[-1])
s290925772
p03544
u800058906
1596894171
Python
Python (3.8.2)
py
Runtime Error
2206
9372
145
N=int(input()) def liu(i): if i==2: return 3 if i==3: return 4 else: return liu(i-1)+liu(i-2) print(liu(N))
s821451292
p03544
u869790980
1596754079
Python
PyPy2 (7.3.0)
py
Runtime Error
63
63340
182
import collections n,q = int(raw_input()) +1, collections.deque() while(n): q.append(sum(list(q)) if len(q) < 2 else (len(q) +1)) if len(q) == 3: q.popleft() n -=1 print q[-1]
s086435859
p03544
u642874916
1596652071
Python
Python (3.8.2)
py
Runtime Error
28
9112
109
N = int(input()) L = [0] * N L[0] = 2 L[1] = 1 for i in range(2, N): L[i] = L[i-1] + L[i-2] print(L[N-1])
s935497728
p03544
u039860745
1596507681
Python
Python (3.8.2)
py
Runtime Error
30
9124
174
N = int(input()) l = 2 l2 = 1 for i in range(N - 1): if i % 2 == 0: l = l + l2 else: l2 = l + l2 if i % 2 == 1: print(l2) else: print(l)
s472689189
p03544
u039860745
1596507641
Python
Python (3.8.2)
py
Runtime Error
26
9120
174
N = int(input()) l = 2 l2 = 1 for i in range(N - 1): if i % 2 == 0: l = l + l2 else: l2 = l + l2 if i % 2 == 1: print(l2) else: print(l)
s745643453
p03544
u809819902
1596246305
Python
Python (3.8.2)
py
Runtime Error
28
9136
164
n=int(input()) if n==1:print(2) elif n==2:print(1) else: nu1=2 nu2=1 for i in range(n-1): nu3=nu1+nu2 nu1=nu2 nu2=nu3 print(nu3)