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
s164239552
p03543
u380914158
1559802440
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38256
67
s = input() if(s[1]==a[2]): print('Yes') else: print('No')
s859927165
p03543
u691018832
1558580714
Python
Python (3.4.3)
py
Runtime Error
17
2940
337
# sys.stdin.readline() import sys import math input = sys.stdin.readline n = input() if n.count('0') >= or n.count('1') >= 3 or n.count('2') >= 3 or n.count('3') >= 3 or n.count('4') >= 3 or n.count('5') >= 3 or n.count('6') >= 3 or n.count('7') >= 3 or n.count('8') >= 3 or n.count('9'): ans = 'Yes' else: ans ...
s422810573
p03543
u816919571
1558574377
Python
Python (3.4.3)
py
Runtime Error
17
2940
136
s = input() flag = False for n in s : m = s.find(n) if s[m] == s[m+1] == s[m+2] : flag = True break print("Yes" if flag else "No")
s017566879
p03543
u363992934
1557806021
Python
Python (3.4.3)
py
Runtime Error
17
2940
176
s = input() if(s[0] == s[1]): if(s[1] == s[2]): print("Yes") return if(s[1] == s[2]): if(s[2] == s[3]): print("Yes") return print("No")
s640055643
p03543
u194894739
1557424647
Python
Python (3.4.3)
py
Runtime Error
17
2940
102
n = list(str(input())) if n[0]==n[1]==n[2] or n[2]==n[1]==n[3] print("Yes") else: print("No")
s061305994
p03543
u239301277
1557290622
Python
Python (3.4.3)
py
Runtime Error
18
3060
82
n=input() if n[0]==n[1]==n[2] or n[1]==n[2]==n[3]: print(Yes) else: print(No)
s909831975
p03543
u621674426
1556889287
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
N = int(input()) print('Yes' if N%1000%111 == 0 or N%1110 < 10)
s914974523
p03543
u794603719
1556156108
Python
Python (3.4.3)
py
Runtime Error
17
3060
105
a=map(int,list(input())) print("Yes" if a[0]==a[1] and a[1]==a[2] or a[3]==a[1] and a[1]==a[2] else "No")
s622543682
p03543
u794603719
1556156064
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
a=map(int,list(input())) print("Yes" if a[0]==a[1]==a[2] or a[3]==a[1]==a[2] else "No")
s703841156
p03543
u026155812
1555943244
Python
Python (3.4.3)
py
Runtime Error
17
2940
130
N = input() cur = 0 for x, y in zip(N, N[1:]): if x == y: ans += 1 if cur >= 2: print('Yes') else: print('No')
s330434170
p03543
u144980750
1555820665
Python
Python (3.4.3)
py
Runtime Error
17
2940
103
a=input() if a[0]==a[1] and a[1]==a[2] || a[1]==a[2] and a[2]==a[3]: print("Yes") else: print("No")
s316171300
p03543
u274045692
1555613710
Python
Python (3.4.3)
py
Runtime Error
17
2940
120
= input() if (N[0] == N[1] and N[1] == N[2]) or (N[1] == N[2] and N[2] == N[3]): print("Yes") else: print("No")
s263337297
p03543
u345094945
1555613569
Python
Python (3.4.3)
py
Runtime Error
18
3060
118
N=input() if N[0]==N[1] and N[1]==N[2]: print("Yes") elif N[2]==N[3] and N[3]==N[4]: print("Yes") else: print("No")
s387013675
p03543
u548545174
1555535755
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
N = input() if len(set(list(str(N))) <= 2: print('Yes') else: print('No')
s591102707
p03543
u331464808
1555472473
Python
Python (3.4.3)
py
Runtime Error
17
2940
104
a=list(int ,input().split()) if a[0]==a[1]==a[2] or a[1]==a[2]==a[3]: print("Yes") else: print("No")
s361752896
p03543
u331464808
1555472422
Python
Python (3.4.3)
py
Runtime Error
17
2940
92
a,b,c,d=list(int ,input().split()) if a==b==c or b==c==d: print("Yes") else: print("No")
s580172385
p03543
u331464808
1555472357
Python
Python (3.4.3)
py
Runtime Error
17
2940
91
a,b,c,d=map(int ,input().split()) if a==b==c or b==c==d: print("Yes") else: print("No")
s650448888
p03543
u331464808
1555472274
Python
Python (3.4.3)
py
Runtime Error
17
2940
105
a,b,c,d=map(int ,input().split()) if a==b==c or b==c==d or a==b==c==d: print("Yes") else: print("No")
s841692044
p03543
u220345792
1555269520
Python
Python (3.4.3)
py
Runtime Error
17
2940
105
N = input() list = [int(i) for i in range(N)] if len(set(list)) <= 2: print("Yes") else: print("No")
s743458193
p03543
u501163846
1555017651
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
n=list(str(raw_input())) if n[0]==n[1]==n[2] or n[1]==n[2]==n[3]: print("Yes") else: print("No")
s312354012
p03543
u844005364
1554582159
Python
Python (3.4.3)
py
Runtime Error
17
2940
71
x = input() print("Yes" if x[0]=x[1]=x[2] or x[1]=x[2]=x[3] else "No")
s810997773
p03543
u091051505
1554428221
Python
Python (3.4.3)
py
Runtime Error
18
2940
142
n = list(input()) if ((len(collections.Counter(n[:3])) == 1) | (len(collections.Counter(n[1:])) == 1)): print("Yes") else: print("No")
s877973243
p03543
u460745860
1554308167
Python
Python (3.4.3)
py
Runtime Error
17
2940
147
N=input();c=0 for n in range(len(N)-1): if N[n]==N[n+1]: c+=1 else: c=0 if c>=3: print('Yes') exit() print('No')
s732742548
p03543
u460745860
1554308131
Python
Python (3.4.3)
py
Runtime Error
18
2940
147
N=input();c=0 for n in range(len(N)-1): if N[n]==N[n+1]: c+=1 else: c=0 if c>=3: print('Yes') exit() print('No')
s053342516
p03543
u644778646
1554057614
Python
Python (3.4.3)
py
Runtime Error
17
2940
247
#include <iostream> using namespace std; int main() { string S; cin >> S; if(S[0]==S[1] && S[1] ==S[2])cout << "Yes" <<endl; else if(S[1]==S[2] && S[2] ==S[3])cout << "Yes" <<endl; else cout << "No" << endl; return 0; }
s466988392
p03543
u694810977
1552942538
Python
Python (3.4.3)
py
Runtime Error
17
2940
186
N = input() i = 0 while i<4: if N[0] == N[i]: count = count + 1 i = i + 1 else: i = i + 1 if count >= 3: print("Yes") elif count <= 3: print("No")
s737242508
p03543
u878138257
1552690104
Python
Python (3.4.3)
py
Runtime Error
17
2940
125
n = input() k=0 for i in range(10): if n.count(str(i))>=3: print("Yes") k=1 break if k=0: print("No")
s659385896
p03543
u878138257
1552690005
Python
Python (3.4.3)
py
Runtime Error
17
2940
117
n = input() k=0 for i in range(10): if n.count(i)>=3: print("Yes") k=1 break if k=0: print("No")
s661080420
p03543
u403984573
1552098757
Python
Python (3.4.3)
py
Runtime Error
17
2940
113
N=input() res=0 for in range(1,10): if N.count("i")>=3: res+=1 print("Yes") if res==0: print("No")
s594146106
p03543
u403984573
1552098732
Python
Python (3.4.3)
py
Runtime Error
18
2940
113
N=input() res=0 for in range(1:10): if N.count("i")>=3: res+=1 print("Yes") if res==0: print("No")
s805420015
p03543
u403984573
1552098694
Python
Python (3.4.3)
py
Runtime Error
18
2940
116
N=int(input()) res=0 for in range(1:10): if N.count(i)>=3: res+=1 print("Yes") if res==0: print("No")
s890824953
p03543
u367130284
1552036817
Python
PyPy3 (2.4.0)
py
Runtime Error
171
38384
97
a=input();print('YNeos'[2<len({*a})or a[1]!=a[2]::2]) #バージョンが違うせい最短(?
s196517613
p03543
u367130284
1552036668
Python
Python (3.4.3)
py
Runtime Error
17
2940
53
a=input();print('YNeos'[2<len({*a})or a[1]!=a[2]::2])
s625407748
p03543
u544050502
1551914767
Python
Python (3.4.3)
py
Runtime Error
18
2940
65
print("Yes" if (N[0]==N[1]==N[2])or(N[1]==N[2]==N[3]) else "No" )
s343298307
p03543
u544050502
1551650914
Python
Python (3.4.3)
py
Runtime Error
18
2940
121
N=input() answer="No" for i in range(len(N)-2) if N[i]==N[i+1]: if N[i+1]==N[i+2]: answer="Yes" print(answer)
s202328201
p03543
u544050502
1551650528
Python
Python (3.4.3)
py
Runtime Error
17
2940
127
N=list(input()) answer="no" for i in range(len(N)-2) if N[i]==N[i+1]: if N[i+1]==N[i+2]: answer="yes" print(answer)
s142784807
p03543
u544050502
1551650229
Python
Python (3.4.3)
py
Runtime Error
18
2940
155
N=list(input()) answer="no" for i in range(len(N)-2) if N[i]==N[i+1]: if N[i+1]==N[i+2]: if N[i+2]==N[i+3]: answer="yes" print(answer)
s647336362
p03543
u209918867
1551350709
Python
Python (3.4.3)
py
Runtime Error
17
2940
83
s=int(input()) print("YES" any([str(i)*3 in str(s) for i in range(10)]) else "NO")
s395238978
p03543
u044746696
1551312607
Python
Python (3.4.3)
py
Runtime Error
17
2940
77
a,b,c,d=map(int,input().split()) print('Yes' if a==b==c or b==c==d else 'No')
s709875176
p03543
u007550226
1550797007
Python
Python (3.4.3)
py
Runtime Error
18
2940
117
N = sorted(input().split()) if N[1] == N[2] and (N[0] == N[1] or N[2] == N[3]): print('Yes') else: print('No')
s592231581
p03543
u449555432
1550714656
Python
Python (3.4.3)
py
Runtime Error
18
2940
89
print('Yes' if len(set(input()[:3]))==1 else 'Yes' if len(set(input()[1:]))==1 else 'No')
s296183574
p03543
u449555432
1550714590
Python
Python (3.4.3)
py
Runtime Error
18
2940
78
print('Yes' if len(set(input()[:3]))==1 or len(set(input()[1:]))==1 else 'No')
s902046215
p03543
u449555432
1550714029
Python
Python (3.4.3)
py
Runtime Error
17
2940
52
print('Yes' if len(set(list(input()))))<3 else 'No')
s208881318
p03543
u796942881
1550200365
Python
Python (3.4.3)
py
Runtime Error
18
3060
245
N = input() len = len(N) cnt = 1 for i in range(0, len, 1): cnt = 1 for j in range(i + 1, len, 1): if (N[i] != N[j]): break else: cnt += 1 num = max(num, cnt) print("Yes" if 3 <= num else "No")
s322904671
p03543
u785578220
1548560109
Python
Python (3.4.3)
py
Runtime Error
18
2940
122
a = input() s = 0 for i in (l,len(a)): if a[i-1] ==a[i]: s+=1 if s>=3: print("Yes") else:print("No")
s875229152
p03543
u785578220
1548559964
Python
Python (3.4.3)
py
Runtime Error
18
2940
122
a = input() s = 0 for i in (l,len(a)): if a[i-1] ==a[i]: s+=1 if s>=3: print("Yes") else:print("No")
s019020491
p03543
u785578220
1548559914
Python
Python (3.4.3)
py
Runtime Error
18
2940
121
a = input() s = 0 for i in (l,len(a): if a[i-1] ==a[i]: s+=1 if s>=3: print("Yes") else:print("No")
s810641912
p03543
u239342230
1546417132
Python
Python (3.4.3)
py
Runtime Error
18
2940
39
print(['Yes','No'][len(set(input())<3])
s896409596
p03543
u740284863
1546312561
Python
Python (3.4.3)
py
Runtime Error
17
2940
88
S = str(input()) N = int(input()) q = (N -1) // 5 mod = N % 5 print(S[q]+S[mod-1])
s600669468
p03543
u740284863
1546312538
Python
Python (3.4.3)
py
Runtime Error
17
2940
126
S = str(input()) N = int(input()) q = (N -1) // 5 mod = N % 5 if N == 25: print(S[4]+S[4]) else: print(S[q]+S[mod-1])
s417286861
p03543
u089032001
1546310477
Python
Python (3.4.3)
py
Runtime Error
17
2940
74
S = input() print("Yes" if s[0]==s[1]==s[2] or s[1]==s[2]==s[3] else "No")
s473097424
p03543
u424044793
1545854078
Python
Python (3.4.3)
py
Runtime Error
18
2940
96
n = int(input()) if n[0]==n[1]==n[2] or n[1]==n[2]==n[3]: print("Yes") else: print("No")
s393969100
p03543
u371467115
1545337538
Python
Python (3.4.3)
py
Runtime Error
18
2940
109
n=[input() for i in range(4)] if n[0]==n[1]==n[2] or n[1]==n[2]==n[3]: print("Yes") else: print("No")
s677055484
p03543
u371467115
1545336530
Python
Python (3.4.3)
py
Runtime Error
18
2940
105
N=input().replace(""," ").split() N=set(N) if len(N)<=2: print("Yes") elif len(N)>=3 print("No")
s077425830
p03543
u371467115
1545336406
Python
Python (3.4.3)
py
Runtime Error
17
3064
95
N=input().replace(""," ").split() N=set(N) if len(N)=<2: print("Yes") else: print("No")
s157841536
p03543
u272377260
1544705601
Python
Python (3.4.3)
py
Runtime Error
18
2940
152
n = input() search_list = [str(x) * 3 for x in range(1,10)] for i in search_list: if i in n: print('Yes') break else: print(No)
s493896040
p03543
u928784113
1544628475
Python
Python (3.4.3)
py
Runtime Error
17
2940
123
#-*- coding: utf-8 -*- N = str(input()) if N[0]==N[1]==N[2] or N[1]==N[2]==N[3]: print("Yes") else: print("No")
s718136741
p03543
u928784113
1544628432
Python
Python (3.4.3)
py
Runtime Error
17
2940
102
#-*- coding: utf-8 -*- N = str(input()) for i in range(1,2): if N[0]==N[1]==N[2] or N[1]==N[2]==N[3]
s736756778
p03543
u198062737
1543612585
Python
Python (3.4.3)
py
Runtime Error
18
2940
92
N = input() if len(set(N[0:2])) == 1 || len(set(N[1:3])): print("Yes") else: print("No")
s961810645
p03543
u848647227
1542767632
Python
Python (3.4.3)
py
Runtime Error
18
2940
108
a = input() if len(set(list(a[0:3]))) == 1 or len(set(list(a[1:4]))) = 1: print("Yes") else: print("No")
s755075732
p03543
u272557899
1542388690
Python
Python (3.4.3)
py
Runtime Error
18
2940
91
n = input() if n[0] = n[1] = n[2] or n[1] = n[2] = n[3]: print("Yes") else: print("No")
s801527342
p03543
u366133198
1541562216
Python
Python (3.4.3)
py
Runtime Error
17
2940
676
#!/usr/bin/python3 import itertools if __name__=='__main__': str = input() signs_comb = list(itertools.combinations_with_rep...
s230458944
p03543
u984870883
1541472025
Python
Python (3.4.3)
py
Runtime Error
16
3064
378
# -*- coding: utf-8 -*- """ Created on Sun Nov 4 21:46:51 2018 @author: sk """ # -*- coding: utf-8 -*- """ Created on Sun Nov 4 21:46:51 2018 @author: sk """ b =str( input()) a = list(b) if b[0]==b[1]: if b[1]==b[2]: print("Yes") else : print("No") elif b[1]==b[2]: if b[2]==b[3]: print("Ye...
s578638943
p03543
u984870883
1541471942
Python
Python (3.4.3)
py
Runtime Error
17
3064
377
# -*- coding: utf-8 -*- """ Created on Sun Nov 4 21:46:51 2018 @author: sk """ # -*- coding: utf-8 -*- """ Created on Sun Nov 4 21:46:51 2018 @author: sk """ b =str( input()) a = list(b) if b[0]==b[1]: if b[1]==b[2]: print("Yes") else : print("No") elif b[1]==b[2]: if b[2]==b[3]: print("Ye...
s550875167
p03543
u984870883
1541471343
Python
Python (3.4.3)
py
Runtime Error
17
3060
310
# -*- coding: utf-8 -*- """ Created on Sun Nov 4 21:46:51 2018 @author: sk """ a = str(input()) char_list = list(a) if a(0)==a(1): if a(1)==a(2): print("Yes") else : print("No") elif a(1)==a(2): if a(2)==a(3): print("Yes") else : print("No")
s518135786
p03543
u984870883
1541470692
Python
Python (3.4.3)
py
Runtime Error
17
2940
309
# -*- coding: utf-8 -*- """ Created on Sun Nov 4 21:46:51 2018 @author: sk """ a = str(input()) char_list = list(a) if a(0)==a(1): if a(1)==a(2): print("Yes") else : print("No") elif a(1)==a(2): if a(2)=a(3): print("Yes") else : print("No")
s259819609
p03543
u984870883
1541470628
Python
Python (3.4.3)
py
Runtime Error
17
3060
345
# -*- coding: utf-8 -*- """ Created on Sun Nov 4 21:46:51 2018 @author: sk """ a = str(input()) char_list = list(a) if a(0)==a(1): if a(1)==a(2): print("Yes") elif a(1)==a(3): print("Yes") else : print("No") elif a(1)==a(2): if a(2)=a(3): print("Yes") else : print("No") ...
s300218282
p03543
u984870883
1541470378
Python
Python (3.4.3)
py
Runtime Error
17
2940
321
# -*- coding: utf-8 -*- """ Created on Sun Nov 4 21:46:51 2018 @author: sk """ a = str(input()) char_list = list(a) if a(0)==a(1): if a(1)==a(2): print("Yes") elif a(1)==a(3) print("Yes") else : if a(1)==a(2)==a(3): print("Yes") else: print("No") ...
s174771892
p03543
u432805419
1541352566
Python
Python (3.4.3)
py
Runtime Error
17
2940
136
a = list(input()) if a[0] == a[1] and a[1] == a[2]: print(Yes) elif a[1] == a[2] and a[2] == a[3]: print(Yes) else: print("No")
s019192160
p03543
u855985627
1540925340
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
n=input() if (n[0]==n[1] and n[1]=n[2]) or (n[1]==n[2] and n[2]==n[3]): print('Yes') else: print('No')
s571754425
p03543
u897302879
1540865942
Python
Python (3.4.3)
py
Runtime Error
17
2940
92
s = [c for c in input()] print('Yes' if len(set(s[:3])) == 1 or len(set[1:]) == 1 else 'No')
s630571252
p03543
u897302879
1540865918
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
s = input() print('Yes' if len(set(s[:3])) == 1 or len(set[1:]) == 1 else 'No')
s061400069
p03543
u484856305
1538881611
Python
Python (3.4.3)
py
Runtime Error
17
2940
90
a,b,c,d=map(int,input().split()) if a==b==c or b==c==d: print("Yes") else: print("No")
s986617247
p03543
u163449343
1538528347
Python
Python (3.4.3)
py
Runtime Error
17
2940
120
form collections import Counter s = input().Counter().most_common(1)[0][1] if s <= 3: print("Yes") else: print("No")
s381023024
p03543
u889914341
1535776768
Python
Python (3.4.3)
py
Runtime Error
17
2940
85
n = list(input()) print("Yes" if min(len(set(n[:3])), len(set(n[1:])) == 1 else "No")
s757057553
p03543
u983918956
1535641071
Python
Python (3.4.3)
py
Runtime Error
17
2940
101
N = int(input()) if N[0] == N[1] == N[2] and N[1] == N[2] == N[3]: print("Yes") else: print("No")
s190914384
p03543
u277802731
1534679616
Python
Python (3.4.3)
py
Runtime Error
17
3060
142
#79a n=input().split() 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')
s007244416
p03543
u513081876
1533149198
Python
Python (3.4.3)
py
Runtime Error
17
2940
121
n = int(input()) if n[1] == n[2] and n[0] == [1] or n[1] == n[2] and n[2] == n[3]: print('Yes') else: print('No')
s017411668
p03543
u115682115
1532220937
Python
Python (3.4.3)
py
Runtime Error
19
3316
135
N = int(input()) a = list(N) if N[0]==N[1]==N[2]==N[3] or N[0]==N[1]==N[2] or N[1]==N[2]==N[3]: print('Yes') else: print('No')
s082340929
p03543
u123756661
1531797151
Python
Python (3.4.3)
py
Runtime Error
18
2940
83
n=int(input()) print("Yes" if n[1]==n[2] and (n[0]==n[1] or n[3]==n[1]) else "No")
s503029532
p03543
u366644013
1531525285
Python
Python (3.4.3)
py
Runtime Error
17
2940
76
n = int(input()) if len(set(n)) <= 2: print("Yes") else: print("No")
s870443294
p03543
u518455500
1530533815
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
s = input() if s[0:3].count(s[0]) == 3 or s[1:4].count(s[3]) print("Yes") else: print("No")
s050144194
p03543
u506302470
1530148981
Python
PyPy3 (2.4.0)
py
Runtime Error
169
38384
130
A=input() if A[0]==A[1] and A[1]==A[2]: print("Yes") elif if A[1]==A[2] and A[2]==A[3]: print("Yes") else: print("No")
s541999320
p03543
u910341281
1529857066
Python
Python (3.4.3)
py
Runtime Error
18
3192
1889
import math #グラフの作成 def make_list(V,E): edges = [] path=[[0]*E for i in range(V) ] #ルート作成に必要になる for i in range(V): a = list(map(int, input().split())) for j in range(len(a)): #print("j",j) path[i][j]=i if j!= i and a[j]==0: a[j...
s475777825
p03543
u986269893
1529614556
Python
Python (3.4.3)
py
Runtime Error
74
3888
127
n=int(input()) def lucas(n): if n==0: return 2 if n==1: return 1 if n>1: return lucas(n-1)+lucas(n-2) print(lucas(n))
s161078967
p03543
u785220618
1528610218
Python
Python (3.4.3)
py
Runtime Error
17
2940
163
# -*- coding: utf-8 -*- n = input() if n[0] == n[1] and n[1] == n[2]: print('Yes') elif n[1] == n[2] and n[3] == n[4]: print('Yes') else: print('No')
s442272499
p03543
u140251125
1528564880
Python
Python (3.4.3)
py
Runtime Error
17
2940
170
# input N = [int(x) for x in list(input()] if N[1] == N[2]: if N[0] == N[1] or N[2] == N[3]: print('Yes') else: print('No') else: print('No')
s364954253
p03543
u552122040
1527958709
Python
Python (3.4.3)
py
Runtime Error
17
2940
204
import sys #integer = list(map(int, str(input()))) integer = list(map(int, str(sys.argv[1]))) print(integer) for i in range(10): if integer.count(i) >= 3: print("Yes") sys.exit() print("No")
s581430591
p03543
u409064224
1526828626
Python
Python (3.4.3)
py
Runtime Error
17
3060
153
a = list(map(str,input().split())) b = list(a) 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")
s185614865
p03543
u111202730
1526176796
Python
Python (3.4.3)
py
Runtime Error
19
2940
169
a, b, c, d = map(int, input().split()) if abs(a - c) <= d: print("Yes") exit() if abs(a - b) <= d and abs(b - c) <= d: print("Yes") exit() print("No")
s258405260
p03543
u043434786
1525224904
Python
Python (3.4.3)
py
Runtime Error
18
3188
180
N=input() cnt=0 last=-1 while N>0: N,n=divmod(N,10) if last == n: cnt+=1 if cnt>=3: break else: cnt=1 last=n if cnt>=3: print('yes') else: print('no')
s568375163
p03543
u215721064
1525024869
Python
Python (3.4.3)
py
Runtime Error
18
2940
117
n = int(input()) l = [0 for i in range(87)] l[0]=2 l[1]=1 for i in range(2,n+1): l[i]=l[i-1]+l[i-2] print(l[n])
s883085450
p03543
u503901534
1523215944
Python
Python (3.4.3)
py
Runtime Error
17
2940
175
m = int(input()) k = [] for i in range(9): k.append((i + 1)*111) print(k) if ((m % 1000) in k) or (m % 1110 =>0 and m % 1110 <= 9): print('Yes') else: print('No')
s839542119
p03543
u417835834
1523199065
Python
Python (3.4.3)
py
Runtime Error
17
3060
154
a = list(map(int,list(input()))) if a[0] == a[1] & a[1] == a[2]: print('Yes') elif a[1] == a[2] & a[3] == a[4]: print('Yes') else: print('No')
s868918656
p03543
u056486147
1522667362
Python
Python (3.4.3)
py
Runtime Error
17
2940
112
S = input() if S[1]==S[2]==S[3]: print("Yes") elif S[2]==S[3]==S[4]: print("Yes") else: print("No")
s218296346
p03543
u693211869
1522370261
Python
Python (3.4.3)
py
Runtime Error
17
2940
99
s = input() if s[0] == s[1] == s[2] or s[1] == s[2] == s[3] print('Yes') else: print('No')
s997438783
p03543
u363610900
1522226358
Python
Python (3.4.3)
py
Runtime Error
17
2940
98
n = int(input()) if n[0] == n[1] == n[2] or n[1] == n[2] == n[3]: print('Yes') else: print('No')
s993756974
p03543
u729707098
1521405367
Python
Python (3.4.3)
py
Runtime Error
17
3064
318
import itertools n = input() x, pm, a = [], [1,-1], 7-int(n[0]) for i in range(1,4): x.append(int(n[i])) for j in itertools.product(pm,repeat=3): if x[0]*j[0]+x[1]*j[1]+x[2]*j[2]==a: y = list(j) break for k in range(3): if y[k]==1: y[k] = "+" else: y[k] = "-" print(n[0]+y[0]+n[1]+y[1]+n[2]+y[2]+n[3]+"=7")
s550709660
p03543
u729707098
1521405163
Python
Python (3.4.3)
py
Runtime Error
18
3064
314
import itertools n = input() x, pm, a = [], [1,-1], 7-int(n[0]) for i in range(1,4): x.append(int(n[i])) for j in itertools.product(pm,repeat=3): if x[0]*j[0]+x[1]*j[1]+x[2]*j[2]==a: y = list(j) break for k in range(3): if y[k]==1: y[k] = "+" else: y[k] = "-" print(n[0]+y[0]+n[1]+y[1]+n[2]+y[2]+n[3]+"=7")
s878858151
p03543
u127856129
1521393352
Python
Python (3.4.3)
py
Runtime Error
17
2940
92
a=list(input()) if a[0]=a[1]=a[2] or a[1]=a[2]=a[3]: print("Yes") else: print("No")