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
s292493093
p03543
u202727309
1580079477
Python
PyPy3 (2.4.0)
py
Runtime Error
177
38256
146
a, b, c, d = input() # 1114 print("Yes" if a==b==c or b==c==d else "No") n=input() print("Yes" if n[0]==n[1]==n[2] or n[0]==n[1]==n[2] else "No")
s950574706
p03543
u702786238
1579624929
Python
Python (3.4.3)
py
Runtime Error
20
3316
220
import collections s = input() c = collections.Counter(s) if len(c) == 1: print("Yes") elif len(c) == 2: if (c.values()[0] == 1) | (c.values()[0] == 3): print("Yes") else: print("No") else: print("No")
s036298660
p03543
u993435350
1579500852
Python
Python (3.4.3)
py
Runtime Error
17
2940
223
#include <bits/stdc++.h> using namespace std; int main() { string A; cin >> A; if (A[0] == A[1] == A[2] || A[3] == A[1] == A[2]){ cout << "Yes" << endl; } else { cout << "No" << endl; } }
s724664583
p03543
u699089116
1579388651
Python
PyPy3 (2.4.0)
py
Runtime Error
178
39152
93
n = str(input()) if s[0]==s[1]==s[2] or s[1]==s[2]==s[3]: print("Yes") else: print("No")
s570534046
p03543
u287880059
1579375783
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
a,b,c,d = map(int,input().split()) print("Yes" if a==b==c or b==c==d else "No")
s064174094
p03543
u184882264
1578616632
Python
Python (3.4.3)
py
Runtime Error
17
2940
113
k = nput() ans = "No" for i in k: if len(k.replace(i, "")) <= 1: ans = "Yes" break print(ans)
s366714502
p03543
u184882264
1578616191
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
k = list(input()) ans = "No" for i in k: if sum(x == i for x in k) >= 3: ans = "Yes print(ans)
s039593025
p03543
u703130195
1578558078
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38384
246
input = sys.stdin.readline N = input() tmp = N[0] count = 0 for n in N: if tmp == n: count += 1 if count == 3: break else: count = 0 tmp = n if count == 3: print("Yes") else: print("No")
s079919696
p03543
u121921603
1578508110
Python
PyPy3 (2.4.0)
py
Runtime Error
170
38640
120
n=input() cnt=0 for i in range(3): if n[i]=n[i+1]: cnt+=1 if cnt>=3: print("Yes") else: print("No")
s301266240
p03543
u079022116
1578293724
Python
Python (3.4.3)
py
Runtime Error
17
2940
181
s=input() for i in range(2): count=0 for j = in range(i+1,4): if s[i] == s[j]: count+=1 else:count=0 if count >= 3: print('Yes') exit() print('No')
s924349333
p03543
u079022116
1578293024
Python
Python (3.4.3)
py
Runtime Error
17
2940
98
a=sorted(input()) for i in range(4) if a.count(a[0]) <= 3: print('Yes') break print('No')
s062140097
p03543
u696444274
1578096208
Python
Python (3.4.3)
py
Runtime Error
17
2940
171
s = input count=0 for i in range(3): if s[i]==s[i+1]: count+=1 else: count==0 if count==2: print("Yes") exit() print("No")
s253825803
p03543
u811436126
1577640208
Python
Python (3.4.3)
py
Runtime Error
18
3060
106
n = int(input()) if n[0] == n[1] == n[2] or n[1] == n[2] == n[3]: print('Yes') else: print('No')
s617944863
p03543
u153419200
1577296638
Python
Python (3.4.3)
py
Runtime Error
17
2940
91
n=int(input()) if n[0]==n[1]==n[2] or n[1]==n[2]==n[3]: print('Yes') else: print('No')
s688377006
p03543
u153419200
1577296394
Python
Python (3.4.3)
py
Runtime Error
18
2940
86
n=int(input()) if n[0]=n[1]=n[2] or n[1]=n[2]=n[3]: print('Yes') else: print('No')
s178936394
p03543
u728095140
1577213504
Python
Python (3.4.3)
py
Runtime Error
18
3060
296
N=input() n=len(N)-1 for i in range(1<<n): ans=N[0] for j in range(n): if ((i>>j)&1) == 1: ans +='+' ans +=N[j+1] elif ((i>>j)&1) ==0: ans+='-' ans+=N[j+1] if eval(ans)==7: temp = ans temp += '=7' print(temp)
s347245260
p03543
u905582793
1577047653
Python
Python (3.4.3)
py
Runtime Error
17
3064
516
h,w = map(int, input().split(' ')) tbl = [list(map(int, input().split(' '))) for i in range(10)] wf = [[10**18 for i in range(10)] for j in range(10)] for k in range(10): for i in range(10): for j in range(10): wf[i][j] = min(tbl[i][j], tbl[i][k]+tbl[k][j]) wall = [list(map(int, input().split(' ...
s944455839
p03543
u905582793
1577045053
Python
Python (3.4.3)
py
Runtime Error
18
3064
604
h,w=map(int, input().split(' ')) tbl = [list(map(int, input().split(' '))) for i in range(10)] tbli = list(zip(*tbl)) cost = [10**18]*10 cost[1]=0 sorttool = [0,1,2,3,4,5,6,7,8,9] order = list(zip(tbli[1],sorttool)) order.sort() del order[0] for i,(c,x) in enumerate(order): cost[x] = min(cost[x],tbli[1][x]) if ...
s541751911
p03543
u027675217
1577037992
Python
Python (3.4.3)
py
Runtime Error
17
3060
272
n = int(input()) n_list = [] for i in n: n_list.append(i) print(n_list) if n_list[1]==n_list[2]==n_list[0]: print("Yes") elif n_list[2]==n_list[3]==n_list[1]: print("Yes") elif n_list[0]==n_list[1]==n_list[2]==n_list[3]: print("Yes") else: print("No")
s253722793
p03543
u374146618
1576981911
Python
Python (3.4.3)
py
Runtime Error
18
2940
97
n0, n1, n2, n3 = int(input()) if n0==n1==n2 or n1==n2==n3: print("Yes") else: print("No")
s433276658
p03543
u279493135
1576900191
Python
Python (3.4.3)
py
Runtime Error
17
2940
123
N = int(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")
s256152498
p03543
u112623731
1576772922
Python
Python (3.4.3)
py
Runtime Error
19
2940
59
slen = len(int(input())) print('Yes' if slen > 3 else 'No')
s360899249
p03543
u114366889
1575950466
Python
Python (3.4.3)
py
Runtime Error
19
3060
208
N = list(map(int,input())) count = 1 count_list = list() for i in range(3): if N[i] == N[i+1]: count += 1 else: count_list.append(count) count = 1 print('Yes') if max(count_list) >= 3 else print('No')
s800795418
p03543
u490992416
1575354432
Python
Python (3.4.3)
py
Runtime Error
17
3060
119
i = input() if i[0] == i[1] == i[2]: print('Yes') elif i[1] == i[2] == i[e]: print('Yes') else: print('No')
s430072212
p03543
u074338678
1575243166
Python
Python (3.4.3)
py
Runtime Error
17
2940
58
a,b,c,d = input() print("Yes" if a=b=c or b=c=d else "No")
s741905451
p03543
u609814378
1574810886
Python
Python (3.4.3)
py
Runtime Error
18
3060
133
if (S[0] == S[1] == S[2]) or (S[1] == S[2] == S[3]) or (S[0] == S[1] == S[2] == S[3] == S[4]): print("Yes") else: print("No")
s801468466
p03543
u545666277
1574566344
Python
Python (3.4.3)
py
Runtime Error
17
2940
214
# -*- coding: utf-8 -*- # 入力 N = str(input()) #X, Y = map(str, input().split()) if N[0] == N[1] and N[1] == N[2] : print ("Yes")1234 elif N[1] == N[2] and N[2] == N[3]: print ("Yes") else : print ("No")
s440266898
p03543
u353797797
1574549214
Python
Python (3.4.3)
py
Runtime Error
18
3056
255
import sys sys.setrecursionlimit(10 ** 6) int1 = lambda x: int(x) - 1 p2D = lambda x: print(*x, sep="\n") def main(): s=map(int, input().split()) if s[0]==s[1]==s[2] or s[3]==s[1]==s[2]: print("Yes") else: print("No") main()
s912538875
p03543
u133327090
1574374821
Python
Python (3.4.3)
py
Runtime Error
17
2940
113
print("Yes" if input()[0] == input()[1] == input()[2]\ or input()[1] == input()[2] == input()[3] else "No")
s630802118
p03543
u505025514
1573581650
Python
Python (3.4.3)
py
Runtime Error
17
2940
92
a = input() b1 = a // 10 b2 = a % 1000 if (b1 * b2) % 111 == 0: print(Yes) else: print(No)
s413830089
p03543
u503228842
1573288539
Python
Python (3.4.3)
py
Runtime Error
17
2940
193
S = input() cnt = 0 temp = S[0] for s in S: if s == temp: cnt += 1 else: cnt = 0 temp = s if s >= 3: print("Yes") exit() print("No")
s457882401
p03543
u754022296
1572922305
Python
Python (3.4.3)
py
Runtime Error
17
2940
86
s = input() if s[0]==s[1]=s[2] or s[1]==s[2]==s[3]: print("Yes") else: print("No")
s332114899
p03543
u075303794
1571932078
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
n = list(x for x in input()) for i in len(n): if n[1] != n[2]: print("No") break else: if n[0] == n[1] or n[-1] == n[1]: print("Yes")
s415747341
p03543
u981931040
1571729799
Python
Python (3.4.3)
py
Runtime Error
17
2940
108
abcd = list(input()) pirnt("Yes") if abcd[2]==abcd[3]==abcd[1] or abcd[0]==abcd[1]==abcd[2] else print("No")
s674558623
p03543
u981931040
1571729733
Python
Python (3.4.3)
py
Runtime Error
17
2940
77
a,b,c,d = input().split() pirnt("Yes") if a==b==c or b==c==d else print("No")
s415241299
p03543
u981931040
1571729702
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38512
77
a,b,c,d = input().split() pirnt("Yes") if a==b==c or b==c==d else print("No")
s934572145
p03543
u981931040
1571729622
Python
PyPy3 (2.4.0)
py
Runtime Error
169
38256
70
a,b,c,d = input().split() pirnt("Yes",if a==b==c or b==c==d else "No")
s235987307
p03543
u506858457
1571495004
Python
Python (3.4.3)
py
Runtime Error
17
2940
104
a,b,c,d=input() if a==b && b==c: print('Yes') elif b==c && c==d: print('Yes') else: print('No')
s950995011
p03543
u506858457
1571494807
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
a,b,c,d=input() if a==b && b==c: print('Yes') else if b==c && c==d: print('Yes') else: print('No')
s510578931
p03543
u506858457
1571494779
Python
Python (3.4.3)
py
Runtime Error
17
2940
104
a,b,c,d=input() if a==b && b==c: print('Yes') elif b==c && c==d: print('Yes') else: print('No')
s580436140
p03543
u066455063
1570761341
Python
Python (3.4.3)
py
Runtime Error
17
2940
104
N = int(input()) luca = [2, 1] for i in range(101): luca.append(luca[i]+luca[i+1]) print(luca[N])
s988337148
p03543
u448655578
1570420630
Python
Python (3.4.3)
py
Runtime Error
17
2940
152
N = list(map(int, input().split())) 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")
s118782913
p03543
u448655578
1570420564
Python
Python (3.4.3)
py
Runtime Error
17
2940
129
N = list(map(int, input().split())) if N[0] == N[1] == N[2] or N[1] == N[2] == N[3]: print("Yes") else: print("No")
s359269195
p03543
u949346038
1569713120
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
i=input() if((i[0]==i[1]&&i[1]==i[2])||(i[1]==i[2]&&i[2]==i[3])): print('Yes') else: print('No')
s109574477
p03543
u874212030
1569624230
Python
Python (3.4.3)
py
Runtime Error
17
2940
72
n = input() print("No" if ((n//10) % 111 and (n%1000) % 111) else "Yes")
s610387176
p03543
u874212030
1569624131
Python
Python (3.4.3)
py
Runtime Error
17
2940
72
n = input() print("No" if ((n//10) % 111 and (n%1000) % 111) else "Yes")
s635412249
p03543
u215743476
1569194332
Python
Python (3.4.3)
py
Runtime Error
17
2940
121
n = input() if (n[0] == n[1] and n[1] == n[2]) or (n[2] == n[3] and n[1] == n[2]): print("Yes") else print("No")
s929542136
p03543
u167908302
1568667072
Python
Python (3.4.3)
py
Runtime Error
17
3064
221
#coding:utf-8 n = list(input()) if s[0] == s[1] and s[1] == s[2]: print('Yes') elif s[1] == s[2] and s[2] == s[3]: print('Yes') elif s[0] == s[1] and s[1] == s[2] and s[2] == s[3]: print('Yes') else: print('No')
s695183220
p03543
u460737328
1568643983
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
N = input() left = len(set(list(N[1:]))) == 1 right = len(set(list(N[:3]))) == 1 print("Yes" if left or right "No")
s812492391
p03543
u597017430
1568131208
Python
Python (3.4.3)
py
Runtime Error
18
2940
88
a,b,c,d = input() print('Yes' if (a == b and b == c ) or (b == c and C == d ) else 'No')
s066073844
p03543
u597017430
1568131149
Python
Python (3.4.3)
py
Runtime Error
17
2940
88
a,b,c,d = input() print('Yes' if (a == b and b == c ) or (b == c and C == d ) else 'No')
s540608361
p03543
u597455618
1567995729
Python
Python (3.4.3)
py
Runtime Error
18
2940
90
a, b, c, d == input() if a == b == c or b == c == d: print("Yes") else : print("No")
s949412772
p03543
u819710930
1567958416
Python
Python (3.4.3)
py
Runtime Error
17
3060
169
N=list(int(input())) if N[1]==N[2]: if N[1]==N[0]: print('Yes') elif N[2]==N[3]: print('Yes') else: print('No') else: print('No')
s162790656
p03543
u876616721
1567871436
Python
Python (3.4.3)
py
Runtime Error
17
2940
166
s = input() a = [int(c) for c in s] 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")
s838808288
p03543
u493491792
1567782938
Python
Python (3.4.3)
py
Runtime Error
18
2940
111
xn=list(input()) a1=n.count(n[0]) a2=n.count(n[1]) if a1>=3 or a2 >=3: print("Yes") else: print("No")
s866276304
p03543
u536377809
1567723019
Python
Python (3.4.3)
py
Runtime Error
169
13720
472
import numpy as np from scipy.sparse.csgraph import dijkstra from collections import defaultdict import sys input = sys.stdin.readline [H,W]= [int(x) for x in input().split()] c=np.array([[int(x) for x in input().split()] for _ in range(10)]) A=[] for _ in range(H): A+=[int(x) for x in input().split()] dd = defa...
s507076952
p03543
u742851263
1567555802
Python
Python (3.4.3)
py
Runtime Error
17
3060
138
a,b,c,d=map(int,list(input())) if a==b==c: pritn("yes") elif b==c==d: print("yes") elif a==b==c==d: print("yes") else: print("No")
s512732863
p03543
u152638361
1567536325
Python
Python (3.4.3)
py
Runtime Error
18
3188
81
N =input() if N.count(N[0])>2 or N.count(N[1]>2): print("Yes") else: print("No")
s591662593
p03543
u131264627
1567524963
Python
Python (3.4.3)
py
Runtime Error
17
2940
123
n = list(input()) if list[0] == list[1] == list[2] or list[1] == list[2] == list[3]: print('Yes') else: print('No')
s217296726
p03543
u131264627
1567524869
Python
Python (3.4.3)
py
Runtime Error
18
2940
151
n = list(input()) if (list[0] == list[1] and list[1] == list[2]) or (list[1] == list[2] and list[2] == list[3]): print('Yes') else: print('No')
s533781046
p03543
u951480280
1567478354
Python
Python (3.4.3)
py
Runtime Error
17
2940
134
num = list(range(100)) num[0] = 2 num[1] = 1 n = int(input()) for i in range(2,n+1): num[i] = num[i-2] + num[i-1] print(num[n])
s620748958
p03543
u074338678
1566863887
Python
Python (3.4.3)
py
Runtime Error
17
2940
75
N = input() print("Yes" if n[0]==n[1]==n[2] or n[1]==n[2]==n[3] else "No")
s379384236
p03543
u074338678
1566863859
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
N = input() print("Yes" if n[0]==n[1]==n[2] or n[1]==n[2]==n[3])
s549204780
p03543
u623819879
1566503935
Python
PyPy3 (2.4.0)
py
Runtime Error
169
38384
83
n=int(input()) print(‘Yes’ if (n//10)%111==0 or (n%1000)%111==0 else ‘No’)
s024558720
p03543
u981931040
1566345085
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
a,b,c,d = input() pirnt("Yes",if a==b==c or b==c==d else "No")
s738921226
p03543
u333731247
1566308729
Python
Python (3.4.3)
py
Runtime Error
17
3064
228
N=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') elif N[2]==N[3] and N[3]==N[0]: print('Yes') elif N[0]==N[2] and N[31]==N[3]: print('Yes') else : print('No')
s212904331
p03543
u492447501
1566146967
Python
Python (3.4.3)
py
Runtime Error
17
2940
57
a,b,c,d=input() print("Yes" if a=b=c or b=c=d else "No")
s870716270
p03543
u284999381
1566077361
Python
Python (3.4.3)
py
Runtime Error
18
2940
75
n=input() print("Yes" if n[0]==n[1]==n[2] elif n[3]==n[1]==n[2] else "No")
s217761596
p03543
u203211107
1565932368
Python
Python (3.4.3)
py
Runtime Error
17
2940
99
#A-Good Integer(ABC079) N=input() if N[1]==N[2]and set(N)<3: print("Yes") else: print("No")
s530949263
p03543
u846218099
1565832751
Python
Python (3.4.3)
py
Runtime Error
17
3064
172
a,b,c=map(int,input().split()) print(a,b,c) if b<=c: d=b b=c c=d if a<=b: d=a a=b b=d if b<=c: d=b b=c c=d print(a,b,c) print(10*a+b+c)
s035717687
p03543
u318165580
1565831341
Python
Python (3.4.3)
py
Runtime Error
19
3064
77
n=int(input()) print("Yes" if n[0]==n[1]==n[2] or n[1]==n[2]==n[3] else "No")
s605429701
p03543
u256464928
1565755196
Python
Python (3.4.3)
py
Runtime Error
17
2940
93
n = input() print("Yes" if n[0]=n[1]=n[2]=n[3] or n[0]=n[1]=n[2] or n[1]=n[2]=n[3] else "No")
s253873099
p03543
u256464928
1565755079
Python
Python (3.4.3)
py
Runtime Error
17
2940
111
n = input() print("Yes" if n[0]=n[1]=n[2]=n[3] or n[0]=n[1]=n[2] or n[0]=n[2]=n[3] or n[0]=n[1]=n[3] else "No")
s477320158
p03543
u994988729
1565750808
Python
Python (3.4.3)
py
Runtime Error
17
2940
91
s=input() if len(set(s[:-1])==1 or len(set([1:])==1: print("Yes") else: print("No")
s144908912
p03543
u842388336
1565666151
Python
Python (3.4.3)
py
Runtime Error
17
2940
147
s = list(map(int,input().split())) cnt = 0 for i in range(3): if s[i]!==s[i+1]: cnt=i break if cnt>=2: print("Yes") else: print("No")
s527025849
p03543
u842388336
1565666117
Python
Python (3.4.3)
py
Runtime Error
20
2940
146
s = list(map(int,input().split())) cnt = 0 for i in range(3): if s[i]!=s[i+1]: cnt=i break if cnt>=2: print("Yes") else: print("No")
s404486327
p03543
u248670337
1565563972
Python
Python (3.4.3)
py
Runtime Error
18
2940
81
n = input print("Yes" if n[0] == n[1] == n[2] or n[1] == n[2] == n[3] else "No")
s337201218
p03543
u248670337
1565563913
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
n = input print("Yes" if n[0] == n[1] == n[2] or n[1] == n[2] == n[3] else "No")
s570104346
p03543
u149079579
1565051277
Python
Python (3.4.3)
py
Runtime Error
23
3828
10743
# -*- coding: utf-8 -*- from collections import defaultdict from heapq import heappop, heappush class Graph(object): """ 隣接リストによる有向グラフ """ def __init__(self): self.graph = defaultdict(list) def __len__(self): return len(self.graph) def add_edge(self, src, dst, weight=1): ...
s148676565
p03543
u844123804
1565043706
Python
Python (3.4.3)
py
Runtime Error
17
2940
134
num = input() tmp = 0 for i in range(len(num)): if num[i]==num[i+1]: tmp+=1 else: tmp=0 if tmp>=3: print('Yes') else: print('No')
s866570689
p03543
u149079579
1564976239
Python
Python (3.4.3)
py
Runtime Error
18
3448
5885
# -*- coding: utf-8 -*- import itertools def shortest_path(st,end,n,w,es): #s→iの最短距離 # st:始点, end:終点, n:頂点数, w:辺の数, es[i]: [辺の始点,辺の終点,辺のコスト] d = [float("inf")] * n #d[i] : s→iの最短距離 d[st] = 0 while True: updata = False for i in range(w): e = es[i] # e: 辺i...
s327295021
p03543
u215315599
1564949941
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
a,b,c,d = input() print("Yes" b==c and(a==b or c==d) else "No" )
s179079085
p03543
u842388336
1564769572
Python
Python (3.4.3)
py
Runtime Error
17
2940
70
N = set(int(input())) if len(N)<=2: print("Yes") else: print("No")
s136621821
p03543
u842388336
1564769544
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
N = set(int(input())) if len(N)<=2: print("Yes") else: print("No)
s169404130
p03543
u736729525
1564673698
Python
Python (3.4.3)
py
Runtime Error
17
2940
150
A = input().split() if A[0] == A[1] == A[2]: print("Yes"): else: A = A[::-1] if A[0] == A[1] == A[2]: print("Yes"): else: print("No")
s424888295
p03543
u982594421
1564320438
Python
Python (3.4.3)
py
Runtime Error
21
3316
123
from collections import Counter c = Counter(input()) if c.most_commons(1)[0][1] >= 3: print('YES') else: print('NO')
s478160341
p03543
u324549724
1563832777
Python
Python (3.4.3)
py
Runtime Error
17
2940
124
a = input(); if (a[0] == a[1] & a[1] == a[2]) print('Yes') elif (a[1] == a[2] & a[2] == a[3]) print('Yes') else print('No')
s256962887
p03543
u538473330
1563583451
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38256
79
a,b,c,d=map(int,input().split('')) print('Yes' if a==c==b or b==c==d else 'No')
s327488918
p03543
u123745130
1563341408
Python
Python (3.4.3)
py
Runtime Error
17
2940
66
a=input() print(["No","Yes"][a[0]==a[1]==a[2]or[a[3]==a[1]==a[2]])
s032733349
p03543
u123745130
1563341315
Python
Python (3.4.3)
py
Runtime Error
17
2940
67
a=input() print(["No","Yes"][a[0]==a[1]==a[2]and[a[3]==a[1]==a[2]])
s410585133
p03543
u010708243
1563078647
Python
Python (3.4.3)
py
Runtime Error
17
2940
262
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if ((s[0] == s[1] and s[1] == s[2]) or (s[1] == s[2] and s[2] == s[3])) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
s395341072
p03543
u979078704
1562905335
Python
Python (3.4.3)
py
Runtime Error
17
2940
71
a, b, c, d = input() print("Yes if a == b == c or b == c ==d else "No")
s087948566
p03543
u979078704
1562905257
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
a, b, c, d = input() print("Yes" if a = b = c or b = c = d else "No")
s251265729
p03543
u120233192
1561710763
Python
Python (3.4.3)
py
Runtime Error
18
2940
255
# run on python 3.4.3 from sys import stdin def main(): digits = map(int, stdin.readline()) dict = {} for digit in digits: dict[digit] = 1 + dict.get(digit, 0) ans = 3 <= max(dict.values()) print(['No', 'Yes'][ans]) main()
s437074021
p03543
u681444474
1561057362
Python
Python (3.4.3)
py
Runtime Error
17
3060
119
N =int(input()) a=N[0] b=N[1] c=N[2] d=N[3] if a==b==c: print('Yes') elif b==c==d: print('Yes') else: print('No')
s754157460
p03543
u193598069
1560309308
Python
Python (3.4.3)
py
Runtime Error
17
3064
261
N = 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') elif N[2] == N[3] and N[3]== N[4]: print ('Yes') elif N[0] == N[1] and N[1]== N[2] and N[2]== N[3]: print ('Yes') else: print ('No')
s054684122
p03543
u193598069
1560309210
Python
Python (3.4.3)
py
Runtime Error
17
3064
261
N = 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') elif N[2] == N[3] and N[3]== N[4]: print ('Yes') elif N[0] == N[1] and N[1]== N[2] and N[2]== N[3]: print ('Yes') else: print ('No')
s484832270
p03543
u193598069
1560309127
Python
Python (3.4.3)
py
Runtime Error
17
3060
262
N = 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') elif N[2] == N[3] and N[3]== N[4]: print ('Yes') elif N[0] == N[1] and N[1]== N[2] and N[2]== N[3]: print ('Yes') else: print ('No')
s559365456
p03543
u193598069
1560309090
Python
Python (3.4.3)
py
Runtime Error
17
3064
267
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') elif N[2] == N[3] and N[3]== N[4]: print ('Yes') elif N[0] == N[1] and N[1]== N[2] and N[2]== N[3]: print ('Yes') else: print ('No')
s146750553
p03543
u380914158
1559804121
Python
PyPy3 (2.4.0)
py
Runtime Error
172
38512
135
s = input() if(s[1]==s[2]): if(s[1]==s[4] or s[1]==s[0]): print('Yes') else: print('No') else: print('No')