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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s813003177 | p03543 | u732061897 | 1599792354 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9028 | 362 | N = input()
s1 = N[1:len(N)]
s2 = N[0:len(N) - 1]
isOk = True
for i in range(1, len(N)):
if s1[i] != s1[i - 1]:
break
isOk = False
else:
continue
if isOk:
print('Yes')
isOk = True
for i in range(1, len(N)):
if s2[i] != s2[i - 1]:
break
else:
continue
if isO... |
s205387727 | p03543 | u010072501 | 1599438560 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8968 | 228 | # A - Good Integer
# 標準入力N
N = input()
my_list = []
j = 0
for i in N:
my_list.append(i)
if my_list[1] == my_list[2] == my_list[3] or my_list[2] == my_list[3] == my_list[4]:
print('Yes')
else:
print('No')
|
s961581013 | p03543 | u485349322 | 1599314051 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8792 | 152 | N=input()
j_count=0
for i in range(0,3):
if N[i]==N[i+1]:
j_count+=1
if j_count>=2 and N[1]==N[2]:
print("Yes")
else:
print("No") |
s090695272 | p03543 | u485349322 | 1599314010 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8876 | 356 | N=input()#整数Nを受け取る
#Nのi文字目とi+1文字目が同じであればカウントを増やす。
j_count=0
for i in range(0,3):
if N[i]==N[i+1]:
j_count+=1
#カウントが2以上かつ2文字目=3文字目であればYes、でなければNoを返す。
if j_count>=2 and N[1]==N[2]:
print("Yes")
else:
print("No") |
s709289866 | p03543 | u773686010 | 1598537421 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9168 | 189 | N = int(input())
dp = [[]for i in range(87)]
dp[0] = 2
dp[1] = 1
for i in range(2,87):
dp[i] = dp[i-1]+dp[i-2]
if i == N:
print(dp[i])
break
else:
print(dp[N]) |
s598850548 | p03543 | u748241164 | 1598286956 | Python | Python (3.8.2) | py | Runtime Error | 29 | 8880 | 160 | N = str(input())
a, b, c, d = N[0], N[1], N[2], N[3]
ans = "No"
if a == b and b =A= c:
ans = "Yes"
elif b == c and c == d:
ans ="Yes"
print(ans)
|
s065082798 | p03543 | u620846115 | 1598028730 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8968 | 80 | a = int(input())
print("Yes" if a[1]==a[2]==a[0] or a[1]==a[2]==a[3], else "No") |
s370094615 | p03543 | u620846115 | 1598028680 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8956 | 75 | a = input()
print("Yes" if a[1]==a[2]==a[0] or a[1]==a[2]==a[3], else "No") |
s709143805 | p03543 | u620846115 | 1598028645 | Python | Python (3.8.2) | py | Runtime Error | 29 | 8964 | 75 | a = input()
print("Yes" if a[1]==a[2]==a[3] or a[4]==a[2]==a[3], else "No") |
s333555359 | p03543 | u316603606 | 1596988295 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8640 | 96 | a = int (inout ())
if a[0]==a[1]==a[2] or a[1]==a[2]==a[3]:
print ('Yes')
else:
print ('No') |
s882036924 | p03543 | u051422473 | 1596908397 | Python | PyPy3 (7.3.0) | py | Runtime Error | 87 | 74868 | 500 | a, b, c, d = [int(x) for x in input().split()]
if a + b + c + d == 7:
print(f"{a}+{b}+{c}+{d}=7")
elif a + b + c - d == 7:
print(f"{a}+{b}+{c}-{d}=7")
elif a + b - c + d == 7:
print(f"{a}+{b}-{c}+{d}=7")
elif a - b + c + d == 7:
print(f"{a}-{b}+{c}+{d}=7")
elif a - b - c + d == 7:
print(f"{a}-{b}-{c... |
s643409930 | p03543 | u265118937 | 1596765731 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9080 | 118 | n = int(input())
if n[1] == n[2]:
if n[0] == n[1] or n[2] == n[3]:
print("Yes")
exit()
print("No") |
s103151233 | p03543 | u265118937 | 1596765674 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9080 | 118 | n = int(input())
if n[1] == n[2]:
if n[0] == n[1] or n[2] == n[3]:
print('Yes')
exit()
print('No') |
s768698723 | p03543 | u265118937 | 1596765620 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9116 | 113 | n = int(input())
if n[1] == n[2]:
if n[0] == n[1] or n[2] == n[3]:
print('Yes')
else:
print('No') |
s327674386 | p03543 | u604839890 | 1596406495 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8840 | 92 | N = list(input())
print('Yes' if N[1] == N[2] and (N[0] == N[1] or N[2] == N[3]) else 'No')a |
s706546429 | p03543 | u891847179 | 1596255431 | Python | Python (3.8.2) | py | Runtime Error | 114 | 27084 | 1252 | # # Make IO faster
# import sys
# input = sys.stdin.readline
# # get single (or) multiple str
# X = input()
# # get single int
# N = int(input())
# # get multiple int (e.g., 2)
# X, Y = map(int, input().split())
# # get multiple int (e.g., 2) for N lines
# XY = [list(map(int, input().split())) for _ in range(N)]
# f... |
s705688984 | p03543 | u823473715 | 1596157337 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9096 | 90 | n=str(input())
if n[1]==n[2]==n[3] or n[2]==n[3]==n[4]:
print('Yes')
else:
print('No') |
s869667408 | p03543 | u823473715 | 1596157228 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8820 | 90 | n=str(input())
if n[1]==n[2]==n[3] or n[2]==n[3]==n[4]:
print('Yes')
else:
print('N')
|
s126982550 | p03543 | u612635771 | 1595631040 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8760 | 114 | n = input()
print("Yes" if ["111", "222", "333", "444", "555", "666", "777", "888", "999", "000"] in n else "No") |
s218998953 | p03543 | u997393081 | 1595538623 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8952 | 49 | n =list(input())
print(len(set(n))==2?'Yes':'No') |
s497072612 | p03543 | u997393081 | 1595538385 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8972 | 43 | n =input()
print(len(set(n))==2?'Yes':'No') |
s714993890 | p03543 | u997393081 | 1595538332 | Python | Python (3.8.2) | py | Runtime Error | 30 | 8920 | 49 | n = int(input())
print(len(set(n))==2?'Yes':'No') |
s554316591 | p03543 | u997393081 | 1595538107 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8864 | 43 | n = int(input())
print(Set(n)==2?'Ye':'No') |
s226190022 | p03543 | u327532412 | 1594736519 | Python | Python (3.8.2) | py | Runtime Error | 22 | 8948 | 130 | S = 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)
else:
print("No") |
s643765403 | p03543 | u047931063 | 1593928193 | Python | PyPy3 (7.3.0) | py | Runtime Error | 88 | 74648 | 94 | N = input()
if len(set(N[1:]) == 1 or len(set(N[:3])) == 1:
print("Yes")
else
print("No")
|
s754067966 | p03543 | u047931063 | 1593928150 | Python | PyPy3 (7.3.0) | py | Runtime Error | 93 | 74692 | 95 | N = input()
if len(set(N[1:]) == 1 and len(set(N[:3])) == 1:
print("Yes")
else
print("No")
|
s692520103 | p03543 | u047931063 | 1593928121 | Python | PyPy3 (7.3.0) | py | Runtime Error | 103 | 74588 | 89 | N = input()
if len(set(N[1:]) == 1 and len(set(N[:3])):
print("Yes")
else
print("No") |
s674145682 | p03543 | u047931063 | 1593927807 | Python | PyPy3 (7.3.0) | py | Runtime Error | 107 | 74348 | 120 | S = input()
N = 0
for i in range(1,len(S))
if S[i-1] == S[i]:
N += 1
if N >= 2:
print("Yes")
else:
print("No") |
s794610939 | p03543 | u595952233 | 1593449532 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9288 | 126 | from collections import Counter
n = list(input())
c = Counter(n)
if max(list(c.values))>=3:
print('Yes')
else:
print('No') |
s315175061 | p03543 | u190178779 | 1593436783 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9132 | 192 | import sys
N = int(input())
N2 = list(map(int,str(N)))
if not (1000 <= N <= 9999):
sys.exit()
if N2[0] == N2[1] == N2[2] or N2[1] == N2[2] == N[3]:
print("Yes")
else:
print("No")
|
s935880981 | p03543 | u583276018 | 1593222038 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8984 | 115 | s = input()
if((t[0:1] == t[1:2] == t[2:3]) or (t[1:2] == t[2:3] == t[3:4])):
print("Yes")
else:
print("No")
|
s124060789 | p03543 | u583276018 | 1593221354 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9004 | 113 | s = input()
if((t[0:1] == t[1:2] == t[2:3]) or (t[1:2] == t[2:3] == t[3:4]):
print("Yes")
else:
print("No") |
s546893136 | p03543 | u209275335 | 1592967337 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9104 | 127 | n = int(input())
for i in range(2):
if n[i] == n[i+1] and n[i+1] == n[i+2]:
print("Yes")
exit()
print("No") |
s022209254 | p03543 | u750651325 | 1592858981 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9084 | 101 | N = list(int(input()))
a = set(N)
a = list(a)
if len(a) <= 2:
print("Yes")
else:
print("No")
|
s619585843 | p03543 | u685244071 | 1591649105 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | n = int(input())
if n[0] == n[1] == n[2] or n[1] == n[2] == n[3]:
print('Yes')
else:
print('No') |
s563064082 | p03543 | u841568901 | 1591389558 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 65 | a, b, c, d = input()
print("Yes" if a==b==c or b==c==f else "No") |
s729989291 | p03543 | u562015767 | 1591307869 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 122 | n = int(input())
l = [0]*87
l[0] = 2
l[1] = 1
for i in range(2,87):
tmp = l[i-2] + l[i-1]
l[i] = tmp
print(l[n]) |
s127116547 | p03543 | u496687522 | 1590840530 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 104 | A, B, C = map(int, input().split())
if A == B:
print(C)
elif B == C:
print(A)
else:
print(B) |
s753844021 | p03543 | u842028864 | 1590810227 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 70 | a = input()
print("Yes" if a[0]=a[1]=a[2] or a[1]=a[2]=a[3] else "No") |
s106216879 | p03543 | u018771977 | 1590790300 | Python | Python (3.4.3) | py | Runtime Error | 154 | 12412 | 615 | #! env/bin/local python3
# -*- coding: utf-8 -*-
import numpy as np
inputs = []
while True:
try:
inputs.append([int(i) for i in input().split()])
except EOFError:
break
h, w = inputs[0]
c = inputs[1: 11]
a = inputs[11:]
number_of_edge = 10
number_of_node = 10
for k in range(number_of_node)... |
s775174407 | p03543 | u347600233 | 1590546930 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 90 | n = input()
print('Yes' if len(set(list(n[:3]))) == 1 or len(set(list(n[1:4]))) == 1 'No') |
s774849801 | p03543 | u347600233 | 1590546810 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 78 | n = input()
print('Yes' if len(set(n[:3])) == 1 or len(set(n[1:4])) == 1 'No') |
s816764539 | p03543 | u236536206 | 1590533537 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 336 | def dfs(i, a, b):
global ans
if i == n:
ans = min(ans, max(a, b))
else:
# a の肉焼き器に乗せるか、 b の肉焼き器に乗せるか
dfs(i + 1, a + t[i], b)
dfs(i + 1, a, b + t[i])
n = int(input())
t = [int(input()) for i in range(n)]
ans = float("inf")
dfs(0, 0, 0)
print(ans) |
s312310194 | p03543 | u236536206 | 1590533451 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 260 | n=int(input())
t=[int(input()) for i in range(n)]
#print(t)
ans=float("INF")
def dfs(i,pork,beaf):
global ans
if i==n:
ans=min(ans,max(pork,beaf))
else:
dfs(i+1,pork+t[i],beaf)
dfs(i+1,pork,beaf+t[i])
dfs(0,0,0)
print(ans) |
s573308480 | p03543 | u611090896 | 1590253160 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 109 | a,b,c,d = input().split()
print('Yes' if a == b == c or b == c == d or a == b == d or a == c == d else 'No')
|
s223747690 | p03543 | u551109821 | 1590169793 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 234 | N = list(int(input()))
cnt = 0
ans = []
for i in range(len(N)-1):
if N[i] == N[i+1]:
cnt += 1
else:
ans.append(cnt)
cnt = 0
for i in ans:
if i >= 3:
print('Yes')
exit()
print('No') |
s483626839 | p03543 | u100409377 | 1590027880 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | import sys
M=input()
for i in range(l0):
if(M.find(str(i))!=-1):
print("Yes")
sys.exit()
print("No") |
s990321544 | p03543 | u629607744 | 1589909924 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 478 | #include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
if (n%1000 == 111 || n%1000 == 222 || n%1000 == 333 || n%1000 == 444 || n%1000 == 555 || n%1000 == 666 || n%1000 == 777 || n%1000 == 888 || n%1000 == 999){
cout << "Yes" << endl;
}
else if (n/10 == 111 || n/10 == 222 || n/10 == 333 ||... |
s429485623 | p03543 | u559346857 | 1589741867 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 57 | a,b,c,d=input()
print("Yes" a==b==c or b==c==d else "No") |
s330575792 | p03543 | u559346857 | 1589741814 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 54 | a,b,c,d=input()
print("Yes" a==b==c else b==c==d "No") |
s408158679 | p03543 | u884323674 | 1588974805 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 120 | N = input()
if S[0] == S[1] == S[2]:
print("Yes")
elif S[1] == S[2] == S[3]:
print("Yes")
else:
print("No") |
s141285883 | p03543 | u727330770 | 1588773762 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 190 | def main():
N = input()
c_list = [c for c in N]
if((c[0] == c[1] and c[0] == c[2]) or (c[1] == c[2] and c[1] == c[3])):
print("Yes")
else:
print("No")
main() |
s598199311 | p03543 | u857673087 | 1588636281 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | a,b,c,d = map(int,input().split())
print('Yes' if a == b == c or b == c == d else 'No')
|
s735351384 | p03543 | u857673087 | 1588636103 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | a,b,c,d = map(int,input().split())
print('Yes' if a = b = c or b = c = d else 'No') |
s855760584 | p03543 | u702208001 | 1588561450 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 79 | n = input()
print('Yes' if n.count(n[0]) >= 3 or n.count(n[1] >= 3 else 'No'))
|
s589723452 | p03543 | u289162337 | 1588303046 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 138 | a, b, c, d = map(int, input().split(""))
m = 100*a+10*b+c
n = 100*b+10*c+d
if m%111 == 0 or n%111 == 0:
print("Yes")
else:
print("No") |
s326658851 | p03543 | u129898499 | 1588126329 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 184 | N = int(input())
A= N//1000
B = (N - A*1000) //100
C = (N - A*1000 - B*100) // 10
D = N - A*1000 - B*100 - C*10
if A = B = C:
print("Yes")
elif B=C=D:
print("Yes")
else:
print("No") |
s130181913 | p03543 | u419963262 | 1587959110 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 106 | n=int(input())
a=0
for i in range(2):
if n[i]==n[i+1] and n[i+1]==n[i+2]:
a=1
print(["No","Yes"][a]) |
s925869646 | p03543 | u306225652 | 1587886398 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 251 | from sys import stdin
def main():
n = stdin.readline()
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:
prinnt("No")
if __name__ == '__main__':
main() |
s384066440 | p03543 | u114099505 | 1587849473 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3056 | 202 | def dfs(i,s,res):
if i==3:
if res == 7:
return s
dfs(i+1,s+'+'+S[i+1],res+int(S[i+1]))
dfs(i+1,s+'-'+S[i+1],res-int(S[i+1]))
S=input()
print(dfs(0,S[0],int(S[0]))+"=7")
|
s277215912 | p03543 | u114099505 | 1587849267 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3056 | 206 | def dfs(i,s,res):
if i==2:
if res == 7:
return s
dfs(i+1,s+'+'+S[i+1],res+int(S[i+1]))
dfs(i+1,s+'-'+S[i+1],res-int(S[i+1]))
S=input()
print(dfs(0,S[0],int(S[0]))+"=7")
|
s515448418 | p03543 | u737508101 | 1587846205 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 301 | N = int(input())
a = N // 1000
b = (N - 1000 * a) // 100
c = (N - 1000 * a - 100 * b) // 10
d = N - 1000 * a - 100 * b - 10 * c
if 1000 <= N >= 9999:
elif a == b == c:
print("Yes")
elif a == b == d:
print("Yes")
elif a == c == d:
print("Yes")
elif b == c == d:
print("Yes")
else:
print("No") |
s134700050 | p03543 | u737508101 | 1587843260 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 310 | N = int(input().split())
a = N // 1000
b = (N - 1000 * a) // 100
c = (N - 1000 * a - 100 * b) // 10
d = N - 1000 * a - 100 * b - 10 * c
if a == b == c:
print("Yes")
if a == b == d:
print("Yes")
if a == c == d:
print("Yes")
if b == c == d:
print("Yes")
if a == b == c == d:
print("Yes")
else:
print("No")
|
s377313313 | p03543 | u737508101 | 1587842415 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 249 | a, b, c, d = map(int, input().split())
N = 1000 * a + 100 * b + 10 * c + d
if a == b == c:
print("Yes")
if a == b == d:
print("Yes")
if a == c == d:
print("Yes")
if b == c == d:
print("Yes")
if a == b == c == d:
print("Yes")
else:
print("No")
|
s982718733 | p03543 | u737508101 | 1587842221 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 238 | a, b, c, d = map(int, input().split())
N = 1000 * a + 100 * b + 10 * c + d
if a = b = c:
print("Yes")
if a = b = d:
print("Yes")
if a = c = d:
print("Yes")
if b = c = d:
print("Yes")
if a = b = c = d:
print("Yes")
else:
print("No")
|
s802035059 | p03543 | u714642969 | 1587618983 | Python | PyPy3 (2.4.0) | py | Runtime Error | 168 | 38384 | 383 | # -*- coding: utf-8 -*-
import sys
sys.setrecursionlimit(10**9)
INF=10**18
MOD=10**9+7
input=lambda: sys.stdin.readline().rstrip()
YesNo=lambda b: bool([print('Yes')] if b else print('No'))
YESNO=lambda b: bool([print('YES')] if b else print('NO'))
int1=lambda x:int(x)-1
def main():
YesNo(int(N:=input()[:3])%111==... |
s479097092 | p03543 | u054717609 | 1587093856 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 178 | n=input()
n=int(n)
og=n
flag=0
for i in range(0,10):
while(n>0):
d=n%10
n=n//10
if(d==i):
flag=flag+1
if(flag>=3):
print("Yes")
else:
print("No") |
s025642323 | p03543 | u566321790 | 1586984822 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 120 | a = int(input())
if a[0]==a[1]==a[2] or a[1]==a[2]==a[3] or a[0]==a[1]==a[2]==a[3]:
print('Yes')
else:
print('No') |
s476977462 | p03543 | u566321790 | 1586984775 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 116 | a = int(input())
if a[0]==a[1]==a[2] or a[1]==a[2]==a[3] a[0]==a[1]==a[2]==a[3]:
print('Yes')
else:
print('No') |
s921587227 | p03543 | u566321790 | 1586984537 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | 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') |
s791919519 | p03543 | u345136423 | 1586920700 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 72 | a = input()
print('Yes' if a[0]=a[1]=a[2] or a[1]=a[2]=a[3] else 'No')
|
s003313648 | p03543 | u345136423 | 1586920628 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 71 | a = input()
print('Yes' if a[0]=a[1]=a[2] or a[1]=a[2]=a[3] else 'No') |
s012726840 | p03543 | u652656291 | 1586809944 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | s = int(input())
if s[0]==s[1]==s[2] or s[1]==s[2]==s[3]:
print('Yes')
else:
print('No') |
s566638730 | p03543 | u677842374 | 1586801953 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 132 | 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')
else:
print('No') |
s711247234 | p03543 | u152509702 | 1586739225 | Python | PyPy3 (2.4.0) | py | Runtime Error | 171 | 38256 | 346 | def dfs(i: int, t: int, op: str):
if i == 3:
if t == 7:
return op
else:
return ""
return dfs(i + 1, t + s[i + 1], op + "+") + dfs(i + 1, t - s[i + 1], op + "-")
s = list(map(int, list(input())))
op = ""
op = dfs(0, s[0], op)
ans = str(s[0]) + op[0] + str(s[1]) + op[1] + str(s[2]) + op[2] + st... |
s176265437 | p03543 | u519939795 | 1586634617 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 98 | n=list(input())
print('Yes' if n[0]==n[1]==n[2] or n[3]==n[1]==n[2] or n[2]==n[3]==n[4] else 'No') |
s426186034 | p03543 | u323210830 | 1586585129 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 102 | a=input()
for i in range(3):
if a[i]==a[i+1]==a[i+2]:
print('Yes')
break
else:
print('No') |
s025833759 | p03543 | u078349616 | 1586479258 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 113 | s = input()
ans = "No"
if s[0] == S[1] == s[2]:
ans = "Yes"
elif s[1] == s[2] == s[3]:
ans = "Yes"
print(ans) |
s692691657 | p03543 | u744920373 | 1586472908 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3188 | 1924 | import sys
sys.setrecursionlimit(10**9)
def ii(): return int(sys.stdin.readline())
def mi(): return map(int, sys.stdin.readline().split())
def li(): return list(map(int, sys.stdin.readline().split()))
def li2(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)]
def dp2(ini, i, j): return [[ini]*i... |
s543989752 | p03543 | u617718239 | 1586386133 | Python | PyPy3 (2.4.0) | py | Runtime Error | 177 | 38384 | 143 | N = int(input())
if N[0] == N[1] and N[1] == N[2]:
print("Yes")
elif N[2] == N[1] and N[3] == N[2]:
print("Yes")
else:
print("No") |
s159129085 | p03543 | u235210692 | 1586274153 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 170 | a=input().split()
if a[0]==a[1] and a[1]==a[2] and a[2]!=a[3]:
print("Yes")
elif a[3]==a[1] and a[1]==a[2] and a[1]!=a[0]:
print("Yes")
else:
print("No")
|
s600133729 | p03543 | u550814027 | 1585495613 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 862 | abcd = input()
bin_pattern_digit = len(abcd) - 1
for i in range(1 << bin_pattern_digit):
# 初期値:一番左の桁の値。
result = int(abcd[0:1])
for j in range(bin_pattern_digit):
# +を入れた場合
# 例:1234のパターン1「+」2の場合:i=0の時に+2(abcd[1:2])する必要がある。
# 3「-」4の場合:i=2の時に-4(abcd[3:4])する必要がある。
... |
s961855232 | p03543 | u229518917 | 1585407092 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 72 | N=input()
print('Yes' if N[0]==N[1]==N[2] or N[1]==N[2]==M[3] else 'No') |
s275589173 | p03543 | u295361373 | 1585268195 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 457 | '''
Auther: ghoshashis545 Ashis Ghosh
College: jalpaiguri Govt Enggineerin College
Date:25/03/2020
'''
from math import ceil,sqrt,log,gcd
def ii():return int(input())
def si():return input()
def mi():return map(int,input().split())
def li():return list(mi())
def main():
s=input()
if((s[0]==s[1] and ... |
s551060895 | p03543 | u363836311 | 1584843372 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 211 | n=str(input())
a=set(n)
p=0
if len(a)==1:
p=1
elif len(a)==2:
b=n[0]
if b==n[1]:
if b==n[2] or b==n[3]:
p=1
elif b==n[2] and b==n[3]:
p=1
if p=1:
print('Yes')
else:
print('No')
|
s309387924 | p03543 | u959225525 | 1584751343 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 137 | n=input()
if n[0]==n[1]==n[2] or n[1]==n[2]==n[3] or n[2]==n[3]==n[4] or n[0]==n[1]==n[2]==n[3]:
print("Yes")
else:
print("No")
|
s516906551 | p03543 | u035445296 | 1584542487 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 122 | print('Yes' if input()[:3] in [str(i)*3 for i in range(0,10)] or input()[1:] in [str(i)*3 for i in range(0,10)] else 'No') |
s168121557 | p03543 | u231685196 | 1584326866 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 109 | n = input()
ct = {}
if ct[1] == ct[2] and (ct[0]==ct[1] or ct[2]==ct[3]):
print("Yes")
else:
print("No") |
s540839633 | p03543 | u896726004 | 1584309407 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | n = input()
n = set(n[0], n[1], n[2], n[3])
if len(n)<=2:
print('Yes')
else:
print('No') |
s292593765 | p03543 | u163874353 | 1583896865 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | a = str(input())
if a[0] = a[1] = a[2] or a[1] = a[2] = a[3]:
print("Yes")
else:
print("No") |
s281225695 | p03543 | u163874353 | 1583896802 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | a, b, c, d = str(input())
if a = b = c or b = c = d:
print("Yes")
else:
print("No") |
s507068221 | p03543 | u291628833 | 1583358090 | Python | PyPy3 (2.4.0) | py | Runtime Error | 182 | 38256 | 113 | n = list(input())
for i in list(set(n)):
c = n.count(i)
if c>=3:
print("Yes")
exit()
print("No") |
s230772947 | p03543 | u346677493 | 1583357194 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 118 | n=raw_input()
if n[0]=n[1]=n[2]=n[3] or n[0]=n[1]=n[2]!=n[3] or n[1]=n[2]=n[3]!=n[0]:
print "Yes"
else:
print "No" |
s480926238 | p03543 | u346677493 | 1583357153 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 118 | n=raw_input()
if n[1]=n[2]=n[3]=n[4] or n[1]=n[2]=n[3]!=n[4] or n[2]=n[3]=n[4]!=n[1]:
print "Yes"
else:
print "No" |
s456218356 | p03543 | u346677493 | 1583357096 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 114 | n=input()
if n[1]=n[2]=n[3]=n[4] or n[1]=n[2]=n[3]!=n[4] or n[2]=n[3]=n[4]!=n[1]:
print "Yes"
else:
print "No" |
s659957115 | p03543 | u905582793 | 1582857436 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 57 | a=int(input())
print("YNeos"[(a//10)%11*(a%1000)%11>0::2] |
s313181725 | p03543 | u413165887 | 1582592391 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 120 | n = input()
for i in range(2):
if n[i]==n[i+1] and n[i]==n[i+2]:
print("Yes")
sys.exit()
print("No") |
s537121218 | p03543 | u904995051 | 1581832452 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 70 | a = input()
print("Yes" if a[0]==a[1]==a[2] or a[3]==a[1]==a[2] "No") |
s737341831 | p03543 | u142616533 | 1581707074 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 593 | a = list(map(int, input().split()))
if a[0]+ a[1]+ a[2] + a[3] == 7:
print('%i+%i+%i+%i=7'%(a[0], a[1], a[2], a[3]))
elif a[0]+ a[1]+ a[2] - a[3] == 7:
print('%i+%i+%i-%i=7'%(a[0], a[1], a[2], a[3]))
elif a[0]+ a[1]- a[2] + a[3] == 7:
print('%i+%i-%i+%i=7'%(a[0], a[1], a[2], a[3]))
elif a[0]- a[1]+ a[2] + a[3] == 7... |
s306959502 | p03543 | u368796742 | 1580955708 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 176 | l = list(input())
for i in range(2):
a = l[i]
count = 0
for j in range(i,i+3):
if a == l[l]:
count += 1
if count == 3:
print("Yes")
exit()
print("No") |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.