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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s999253863 | p04043 | u755616667 | 1572676293 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 390 | ef main():
HAIKU = [5, 7, 5]
v = list(map(int, input().split()))
return equal_list(v, HAIKU)
def equal_list(lst1, lst2):
lst = lst1.copy()
for element in lst2:
try:
lst.remove(element)
except ValueError:
break
else:
if not lst:
return "YES"
return "NO"
if __name__ == "__main__":
print(main())
|
s514171736 | p04043 | u923659712 | 1572554494 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 167 | a, b, c = map(int, input().split())
if (a == 7 and b ==5 and c == 5)or(a == 5 and b == 7 and c == 5)
or(a==5 and b==5 and c==7):
print("YES")
else:
print("NO") |
s147325845 | p04043 | u923659712 | 1572554444 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 210 | a, b, c = map(int, input().split())
# まず長さが7の文節があるか確認
if (a == 7 and b ==5 and c == 5)or(a == 5 and b == 7 and c == 5)
or(a==5 and b==5 and c==7):
print("YES")
else:
print("NO") |
s769675168 | p04043 | u923659712 | 1572554205 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 185 | a, b, c = map(int, input().split())
# まず長さが7の文節があるか確認
if (a == 7 b == 5 c == 5)or(a == 5 b == 7 c == 5)or(a==5 b==5 c==7):
print("YES")
else:
print("NO") |
s294438099 | p04043 | u923659712 | 1572552727 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 117 | a,b,c = map(int,input().split())
if a=5 b=5 c=7 or a=5 b=7 c=5 or a=7 b=5 c=5:
print("YES")
else:
print("NO") |
s894508339 | p04043 | u580093517 | 1572363689 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 87 | n,l = map(int,input().split())
S = sorted([input() for _ in range(n)])
print(*S,sep="") |
s097820786 | p04043 | u172111219 | 1572108078 | Python | PyPy3 (2.4.0) | py | Runtime Error | 188 | 38256 | 483 | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
vector<int> a(3);
rep(i,3){
cin >> a[i];
}
sort(a.begin(),a.end());
if (a[0]!=5){
cout << "NO" << endl;
exit(0);
}
if (a[1]!=5){
cout << "NO" << endl;
exit(0);
}
if (a[2]!=7){
cout << "NO" << endl;
exit(0);
}
cout << "YES";
return 0;
} |
s740260442 | p04043 | u368882459 | 1572036806 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 157 | n, k = map(int, input().split())
d = set(map(str, input().split()))
for i in range(n, 10*n):
if len(d & set(str(i))) == 0:
print(i)
break |
s936326067 | p04043 | u623516423 | 1572033167 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 | ls=list(map(int,input().split()))
ls1=[[5,7,5],[5,5,7],[7,5,5]]
if ls in ls1:
print('YES')
else:
print('NO') |
s002200038 | p04043 | u623516423 | 1572032948 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 157 | ls=list(map(int,input().split()))
A=ls[0]
B=ls[1]
C=ls[2]
if (A==B==5 and C=7) or (A==C==5 and B==5) or (A==7 or B==C==5):
print('YES')
else:
print('NO') |
s015474069 | p04043 | u100418016 | 1572012977 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 121 | arr_len_int = int(input().split(' ')[1])
a = [input() for i in range(arr_len_int)]
a.sort()
b = set(a)
print(''.join(b )) |
s787875569 | p04043 | u079427319 | 1571810202 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 829 | val, size = map(int, input().split())
disabledList = [int(x) for x in input().split()] # number
enableList = list(set(range(10)) - set(disabledList)) # number
resultList = [] # str, must reverse
isTenOver = False
for char in reversed(list(str(val))):
targetInt = int(char)
if isTenOver:
targetInt += 1
if targetInt in enableList:
isTenOver = False
resultList.append(str(targetInt))
continue
resultList = [str(min(enableList))] * len(resultList)
if targetInt > max(enableList):
isTenOver = True
resultList.append(str(min(enableList)))
else:
isTenOver = False
minNum = min(filter(lambda x:x > targetInt, enableList))
resultList.append(str(minNum))
if isTenOver:
minNum = min(filter(lambda x:x > 0, enableList))
resultList.append(str(minNum))
print(''.join(reversed(resultList))) |
s742533069 | p04043 | u034243122 | 1571803174 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 158 | A,B,C=map(int(input()))
if A=5 or B=5 or C=7:
print('Yes')
elif A=5 or B=7 or C=5:
print('Yes')
elif A=7 or B=5 or C=5:
print('Yes')
else:
print('No') |
s037578885 | p04043 | u361342329 | 1571588140 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 139 | l = [int(i) for i in range(input().split()]
print('YES') if l.count(5) == 2 and l.count(7) == 1 else print('NO')
|
s044450188 | p04043 | u677400065 | 1571520931 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 203 | a = list(map(int, input().split()))
count = 0
count1 = 0
for i in range(3):
if a[i] == 5:
count++
elif a[i] == 7:
count1++
if count == 2 & count1 == 1:
print("YES")
else:
print("NO") |
s418422594 | p04043 | u326775883 | 1571502929 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 149 | if A==5 and B==5 and C==7:
print('Yes')
elif A==5 and B==7 and C==5:
print('Yes')
elif A==7 and B==5 and C==5:
print('Yes')
else:
print('No') |
s965482600 | p04043 | u870559097 | 1571455536 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 88 | a = int(input().split())
if a[0] + a[1] + a[2] == 17:
print("YES")
else:
print("NO") |
s023396572 | p04043 | u870559097 | 1571455386 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 180 | A, B, C = int(input().split())
if A == 7, B == 5, C == 5:
print("YES")
elif A == 5, B == 7, C == 5:
print("YES")
elif A == 5, B == 5, C == 7:
print("YES")
else:
print("NO") |
s227794200 | p04043 | u870559097 | 1571455179 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 175 | A, B, C = input().split()
if A == 7, B == 5, C == 5:
print("YES")
elif A == 5, B == 7, C == 5:
print("YES")
elif A == 5, B == 5, C == 7:
print("YES")
else:
print("NO") |
s195645521 | p04043 | u870559097 | 1571454533 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 90 | A, B, C = int(map(input().split()))
if A + B + C == 17:
print("YES")
else:
print("NO") |
s228507235 | p04043 | u870559097 | 1571454407 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 85 | A, B, C = int(input().split())
if A + B + C == 17:
print("YES")
else:
print("NO") |
s264952351 | p04043 | u246572032 | 1571344273 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 65 | A, B, C = int(input())
print('YES' if A, B, C == 5 7 5 else 'NO') |
s882048241 | p04043 | u391442102 | 1571250286 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 230 | A = input()
B = input()
C = input()
D = A + B + C
if(D<=12):
if (A == 7):
if(B == 5):
print('YES')
if (B == 7):
if(A == 5):
print('YES')
if (C == 7):
if(A == 5):
print('YES')
else:
print('NO') |
s313330765 | p04043 | u626468554 | 1571193586 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 206 |
a = list(map(int,input().split()))
a.sort()
ans = True
if a[0] != 5:
ans = False
if a[1] != 5:
ans = False
if a[2] != 7:
ans = False
if(ans):
print("Yes")
else:
print("No")
|
s953594122 | p04043 | u045953894 | 1571159751 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 87 | A,B,C=map(int,input().split())
if A*B*C == 5*5*7
print('YES')
else:
print('NO') |
s307188499 | p04043 | u045953894 | 1571159602 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 78 | A,B,C=map(int,input().split)
if A+B+C == 17:
print('YES')
else:
print('NO) |
s770683395 | p04043 | u835924161 | 1571134964 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 78 | a,b,c=map(int,input().split())
if a*b*c==5*5*7
print("YES")
else
print("NO") |
s679961228 | p04043 | u633000076 | 1571006660 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 165 | input_line=input().rstrip().split(" ")
five=int(input_line.count("5"))
seven=int(input_line.count("7"))
if five=2 and seven=1:
print("YES")
else:
print("NO") |
s881821989 | p04043 | u633000076 | 1571006378 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 223 | input_line=input().rstrip().split(" ")
a=int(input_line[0])
b=int(input_line[1])
c=int(input_line[2])
if a+b+c!=17:
print("NO")
elif (a==b==5 or a==c==5 or b==C==5) and a+b+c==17:
print("YES")
else:
print("NO")
|
s690050360 | p04043 | u633000076 | 1571006272 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 207 | input_line=input().rstrip().split(" ")
a=int(input_line[0])
b=int(input_line[1])
c=int(input_line[2])
if a==b==5 or a==c==5 or b==C==5:
if a+b+c==17:
print("YES")
elif a+b+c!=17:
print("NO")
|
s304623271 | p04043 | u633000076 | 1571006244 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 206 | input_line=input().rstrip().split(" ")
a=int(input_line[0])
b=int(input_line[1])
c=int(input_line[2])
if a==b==5 or a==c==5 or b==C==5:
if a+b+c==17:
print("YES")
elif a+b+c!=17
print("NO")
|
s851456707 | p04043 | u633000076 | 1571006154 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 196 | input_line=input().rstrip().split(" ")
a=int(input_line[0])
b=int(input_line[1])
c=int(input_line[2])
if a==b==5 or a==c==5 or b==C==5:
if a+b+c==17:
print("YES")
else:
print("NO") |
s943476510 | p04043 | u633000076 | 1571006036 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 175 | input_line=input().rstrip().split(" ")
a=int(input_line[0])
b=int(input_line[1])
c=int(input_line[2])
if a==b==5 or a==c==5 or b==C==5:
print("YES")
else:
print("NO")
|
s152592948 | p04043 | u633000076 | 1571005938 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 207 | input_line=input().rstrip().split(" ")
a=int(input_line[0])
b=int(input_line[1])
c=int(input_line[2])
if a+b+c!=17:
print("NO")
elif a==b==5 or a==c==5 or b==C==5:
print("YES")
else:
print("NO")
|
s774824949 | p04043 | u383450070 | 1570485929 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 218 | s = input().rstrip().split(' ')
counta = 0
countb = 0
for i in range(len(s)):
if int(s[i]) == 7:
counta += 1
elif int(s[i]) == 5:
countb += 1
if counta == 1 and countb == 2:
print('YES')
else:
print('NO') |
s512163030 | p04043 | u767432305 | 1570485718 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 216 | abc=[int(i) for i in input().split()]
num_five=0
num_seven=0
for i in range(3):
if abc[i]==5:
num_five+=1
elif abc[i]==7:
num_five+=1
if num_five==2 and num_seven==1:
print("YES")
else:
print("NO")
|
s321149049 | p04043 | u606878291 | 1570372910 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 257 | def check_a(numbers):
if numbers.count(5) == 2 and numbers.count(7) == 1:
return 'YES'
else:
return 'NO'
def main():
numbers = list(map(int, input()))
print(check_a(numbers=numbers))
if __name__ == '__main__':
main()
|
s624463873 | p04043 | u674064321 | 1570075836 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 118 | List=[int(i) for i in input().split()]
if List.count(5) == 2 and List.cout(7) == 1:
print("YES")
else:
print("NO") |
s503362687 | p04043 | u674064321 | 1570075725 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 118 | List=[int(i) for i in input().split()]
if List.count(5) == 2 and List.cout(7) == 1:
print("YES")
else:
print("NO") |
s063174189 | p04043 | u746419473 | 1569920756 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | n,l=map(int,input().split())
s=sorted([input() for i in range(n)])
print(*s,sep="")
|
s697918891 | p04043 | u672898046 | 1569912761 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 110 | n, l = map(int, input().split())
s = []
for _ in range(n):
s.append(input())
s = sorted(s)
print(*s, sep="") |
s135020914 | p04043 | u672898046 | 1569912656 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 129 | n, l = map(int, input().split())
s = []
for _ in range(n):
s.append(input())
s = sorted(s)
r = ""
for i in s:
r += i
print(r) |
s726296767 | p04043 | u175590965 | 1569898534 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 103 | a,b,c = list(map(int,input().split()))
a.sort()
if a == [5,5,7]:
print("YES")
else:
print("NO") |
s080428523 | p04043 | u508934152 | 1569897876 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 193 | data = input()
flag1 = 0
flag2 = 0
for i in range(3):
if data[i] = '5':
flag1 += 1
elif data[i] = '7':
flag2 += 1
if flag1 == 1 and flag2 == 2:
print('YES')
else:
print('NO') |
s918432502 | p04043 | u873059840 | 1569866261 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 181 | a = int(input())
b = int(input())
c = int(input())
list = [a,b,c]
if(7 in list):
if list.count(5)==2:
print("YES")
else:
print("NO")
else:
print("NO")
|
s824754189 | p04043 | u856957183 | 1569682262 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 343 | input_a = input().split()
kazu = int(input_a[0]) + 1
suuji_kosuu = int(input_a[1])
input_b = input().split()
for i in range(kazu,10000):
t = 0
for j in range(suuji_kosuu):
if input_b[j] in str(i):
break
else:
t = t+1
continue
if t == suuji_kosuu:
print(i)
break |
s082251248 | p04043 | u920543723 | 1569439294 | Python | Python (3.4.3) | py | Runtime Error | 147 | 12424 | 585 | import numpy as np
n = list(map(int, input().split()))
d = np.array(list(map(int, input().split())))
a = len(str(n[0]))
x = np.zeros(a + 1)
for i in range(a + 1):
x[i] = (n[0] % np.power(10, a - i + 1)) // np.power(10, a - i)
i = 1
while 1:
while np.any(d == x[i]):
x[i] += 1
x[i + (i != a):] = 0
if x[i] == 10:
x[i - 1] += 1
x[i:] = 0
i = 0
i += 1
if np.any(d == x[0]) and x[0] != 0:
i = 0
if i == a:
break
ans = 0
for i in range(a + 1):
ans += x[i] * np.power(10, a - i)
print(int(ans)) |
s076726769 | p04043 | u920543723 | 1569430883 | Python | Python (3.4.3) | py | Runtime Error | 280 | 19616 | 625 | import numpy as np
n = list(map(int, input().split()))
d = np.array(list(map(int, input().split())))
while 1:
a = (n[0] % 10000) // 1000
b = (n[0] % 1000) // 100
c = (n[0] % 100) // 10
e = n[0] % 10
f = n[0] // 10000
if f != 0 and np.any(d == f):
n[0] = (f + 1) * 10000
elif np.any(d == a):
n[0] = f * 10000 + (a + 1) * 1000
elif np.any(d == b):
n[0] = f * 10000 + a * 1000 + (b + 1) * 100
elif np.any(d == c):
n[0] = f * 10000 + a * 1000 + b * 100 + (c + 1) * 10
elif np.any(d == e):
n[0] += 1
else:
print(n[0])
break |
s764050832 | p04043 | u920543723 | 1569430744 | Python | Python (3.4.3) | py | Runtime Error | 305 | 21164 | 584 | import numpy as np
n = list(map(int, input().split()))
d = np.array(list(map(int, input().split())))
while 1:
a = (n[0] % 10000) // 1000
b = (n[0] % 1000) // 100
c = (n[0] % 100) // 10
e = n[0] % 10
f = n[0] // 10000
if np.any(d == f):
n[0] = f * 10000
elif np.any(d == a):
n[0] = f * 10000 + (a + 1) * 1000
elif np.any(d == b):
n[0] = a * 1000 + (b + 1) * 100
elif np.any(d == c):
n[0] = a * 1000 + b * 100 + (c + 1) * 10
elif np.any(d == e):
n[0] += 1
else:
print(n[0])
break |
s344630549 | p04043 | u920543723 | 1569427876 | Python | Python (3.4.3) | py | Runtime Error | 153 | 12420 | 432 | import numpy as np
n = list(map(int, input().split()))
d = np.array(list(map(int, input().split())))
while 1:
if np.any(d == (n[0] // 1000)):
n[0] += 1000 - (n[0] % 1000)
elif np.any(d == (n[0] % 1000) // 100):
n[0] += 100 - (n[0] % 100)
elif np.any(d == (n[0] % 100) // 10):
n[0] += 10 - (n[0] % 10)
elif np.any(d == n[0] % 10):
n[0] += 1
else:
print(n[0])
break |
s234876854 | p04043 | u470359972 | 1569355597 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 431 | input_line = input().split()
#print(input_line)
count5 = 0
count7 = 0
#print(input_line[0])
#print(len(input_line))
for i in range(len(input_line)):
# print(input_line[i])
if int(input_line[i]) == 5:
# print(input_line[i])
count5 += 1
# print(count5)
elif int(input_line[i]) == 7:
count7 += 1
# print(count7)
if count5 == 2 and count7 == 1:
print("YES")
# print(count5,count7)
else:
# print(count5,count7) |
s177549640 | p04043 | u740047492 | 1569338952 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 102 | a, b, c = map(int, input().split())
if a == 5 and b == 7 and c = 5:
print("YES")
else:
print("NO") |
s999611286 | p04043 | u740047492 | 1569338926 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 119 | a = int(input())
b = int(input())
c = int(input())
if a == 5 and b == 7 and c == 5:
print("YES")
else:
print("NO") |
s141236731 | p04043 | u740047492 | 1569338699 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 102 | a, b, c = map(int, input().split())
if a == 5 and b == 7 and c = 5:
print("Yes")
else:
print("No") |
s223497713 | p04043 | u474925961 | 1569265884 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 167 | import sys
if sys.platform =='ios':
sys.stdin=open('input_file.txt')
S=map(int,input().split())
s=sorted(S)
if s==5,5,7:
print("YES")
else:
print("NO")
|
s491128273 | p04043 | u953753178 | 1569172899 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 222 | A = list(map(int, input().split()))
five_cnt = 0
seven_cnt = 0
for a in A:
if a == 5:
five_cnt++
if a == 7:
seven_cnt++
if five_cnt == 2 and seven_cnt == 1:
print("Yes")
else:
print("No")
|
s562182310 | p04043 | u447166124 | 1568952365 | Python | PyPy3 (2.4.0) | py | Runtime Error | 174 | 38256 | 98 | A, B, C = map(int, input().split())
if A+B+C is not 17:
print('NO')
exit(1)
print('YES') |
s015239002 | p04043 | u318508464 | 1568931949 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 219 | # coding:utf-8
x, y, z = [int(i) for i in input().split()]
if x = 5 and y = 7 and z = 5:
print("YES")
elif x = 7 and y = 5 and z = 5:
print("YES")
elif x = 5 and y = 5 and z = 7:
print("YES")
else:
print("NO") |
s775834297 | p04043 | u318508464 | 1568931847 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 216 | # coding:utf-8
x, y, z = list(map(int, input().split()))
if x = 5 and y = 7 and z = 5:
print("YES")
elif x = 7 and y = 5 and z = 5:
print("YES")
elif x = 5 and y = 5 and z = 7:
print("YES")
else:
print("NO") |
s723350851 | p04043 | u090267744 | 1568840218 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | n,l=map(int,input().split( ))
s=[]
for i in range(n):
s.append(input())
print(' '.join(sorted(s)))
|
s546743027 | p04043 | u090267744 | 1568840115 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 169 | #文字列大好きいろはちゃんイージー
n,l=list(map(int,input().split( )))
s=[]
for i in range(n):
s.append(input())
print(' '.join(sorted(s)))
|
s336068594 | p04043 | u090267744 | 1568840016 | Python | Python (3.4.3) | py | Runtime Error | 149 | 12504 | 187 | #文字列大好きいろはちゃんイージー
import numpy as np
n,l=list(map(int,input().split( )))
s=[]
for i in range(n):
s.append(input())
print(''.join(sorted(s)))
|
s743365296 | p04043 | u090267744 | 1568839798 | Python | Python (3.4.3) | py | Runtime Error | 152 | 12420 | 322 | #文字列大好きいろはちゃんイージー
import numpy as np
n,l=list(map(int,input().split( )))
s=[]
for i in range(n):
s.append(input())
S=""
a=0
while len(s)>0:
for i in range(n-a):
if s[i]==min(s):
S+=s[i]
del s[i]
a+=1
break
print(S)
|
s524559488 | p04043 | u156207148 | 1568827090 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 198 | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 18 13:12:09 2019
@author: reimu
"""
a = map(list, input().split())
if a.count('5') == 2 and a.count('7') == 1:
print('YES')
else:
print('NO') |
s284877187 | p04043 | u156207148 | 1568827052 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 194 | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 18 13:12:09 2019
@author: reimu
"""
a = map(list, input().split())
if a.count(5) == 2 and a.count(7) == 1:
print('YES')
else:
print('NO') |
s622556069 | p04043 | u156207148 | 1568827027 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 193 | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 18 13:12:09 2019
@author: reimu
"""
a = map(int, input().split())
if a.count(5) == 2 and a.count(7) == 1:
print('YES')
else:
print('NO') |
s681936605 | p04043 | u156207148 | 1568826950 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 188 | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 18 13:12:09 2019
@author: reimu
"""
a = map(int, input().split())
if a.count(5) == 2 and a.count(7):
print('YES')
else:
print('NO') |
s502987077 | p04043 | u131264627 | 1568778076 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 108 | a = map(int, input().split())
if a.count(5) == 2 and a.count(7) == 1:
print('YES')
else:
print('NO') |
s626841225 | p04043 | u482808969 | 1568504599 | Python | PyPy3 (2.4.0) | py | Runtime Error | 176 | 38256 | 97 | lst = map(int, input().split())
print("YES" if lst.count(5) == 2 and lst.count(7) == 1 else "NO") |
s005099072 | p04043 | u575560095 | 1568485256 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 145 | N,L = map(int,input().split())
S = []
ans = ""
for i in range(N):
S.append(input())
sorted(S)
for i in range(len(S)):
ans += S[i]
print(ans)
|
s657579751 | p04043 | u395187579 | 1568393540 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 145 | A=input()
B=input()
C=input()
for A,B,C in range(1,10):
if A==5 B==5 C==7 || A==7 B==5 C==5 || A==5 B==7 C==5:
print('Yes')
else:
print('No')
|
s707194010 | p04043 | u788703383 | 1568129493 | Python | PyPy2 (5.6.0) | py | Runtime Error | 43 | 28268 | 257 | i = list(map(int, input().split()))
if i[0] == 7:
if i[1] == 5 and i[2] ==5:
print('YES')
else:
print('NO')
elif i[0] == 5:
if (i[1] == 7 and i[2] == 5) or (i[2] == 7 and i[1] == 5):
print('YES')
else:
print('NO')
else:
print('NO') |
s671940754 | p04043 | u977349332 | 1568062055 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 89 | abc = [int (x) in input().split()]
abc.sort()
print('YES' if abc == [5, 5, 7] else 'NO')
|
s587577110 | p04043 | u595716769 | 1568013262 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 148 | N, L = map(int, input().split())
Li = [input() for i in range(N)]
s = ""
for i in range(N):
temp = min(Li)
Li.remove(temp)
s += temp
print(s) |
s450024490 | p04043 | u595716769 | 1568013097 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 145 | N, L = map(int, input().split())
L = [input() for i in range(N)]
s = ""
for i in range(N):
temp = min(L)
L.remove(temp)
s += temp
print(s) |
s876574622 | p04043 | u194447264 | 1567872662 | Python | Python (2.7.6) | py | Runtime Error | 14 | 2816 | 366 | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 6 16:59:47 2019
@author: ask07
"""
A=int(input("Aの文字数を入力:"))
B=int(input("Bの文字数を入力:"))
C=int(input("Cの文字数を入力:"))
if A==5 and B==5 and C==7:
print("YES")
elif A==5 and B==7 and C==5:
print("YES")
elif A==7 and B==5 and C==5:
print("YES")
else:
print("NO")
|
s224610599 | p04043 | u194447264 | 1567872051 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 204 | A=int(input())
B=int(input())
C=int(input())
if A==5 and B==5 and C==7:
print("YES")
elif A==5 and B==7 and C==5:
print("YES")
elif A==7 and B==5 and C==5:
print("YES")
else:
print("NO") |
s430156063 | p04043 | u194447264 | 1567871532 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 280 |
A=int(input("Aの文字数を入力:"))
B=int(input("Bの文字数を入力:"))
C=int(input("Cの文字数を入力:"))
if A==5 and B==5 and C==7:
print("YES")
elif A==5 and B==7 and C==5:
print("YES")
elif A==7 and B==5 and C==5:
print("YES")
else:
print("NO")
|
s572277750 | p04043 | u194447264 | 1567871195 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 364 | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 6 16:59:47 2019
@author: ask07
"""
A=int(input("Aの文字数を入力:"))
B=int(input("Bの文字数を入力:"))
C=int(input("Cの文字数を入力:"))
if A==5 and B==5 and C==7:
print("YES")
elif A==5 and B==7 and C==5:
print("YES")
elif A==7 and B==5 and C==5:
print("YES")
else:
print("NO")
|
s370856308 | p04043 | u872056745 | 1567534630 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 | n, l = map(int, input().split())
str = []
for i in range(n):
str.append(input())
str.sort()
print(''.join(str)) |
s073018369 | p04043 | u872056745 | 1567534181 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 | n, l = map(int, input().split())
str = []
for i in range(n):
str.append(input())
str.sort()
print("".join(str)) |
s413698338 | p04043 | u513900925 | 1567532241 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 72 | A,B,C = int(input())
if A*B*C == 175:
print("YES")
else:
print("NO") |
s347938106 | p04043 | u164261323 | 1567279961 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 85 | n = input().split()
print("YES") if n.count("5") ==2 and n.count("7") == 1 else "NO") |
s726834011 | p04043 | u288500098 | 1567229605 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 315 | N,K = map(int, input().split())
kirai = [int(i) for i in input().split()]
usable_num = [1,2,3,4,5,6,7,8,9]
for x in kirai:
usable_num.remove(x)
ketasu = len(str(N))
#print(ketasu)
s = 0
for d in range(ketasu):
s += min(usable_num) * 10 ** d
if s >= N:
print(s)
else:
print(N+min(usable_num)) |
s358375479 | p04043 | u824365684 | 1567198583 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 138 | a = input();
b = input();
c = input();
d = [a,b,c];
d.sort();
if d[0]==5 and d[1]==5 and d[2]==7:
print("YES");
else:
print("NO");
|
s002765774 | p04043 | u723612399 | 1567175244 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 204 | # -*- coding: utf-8 -*-
f_line = input().split()
N = int(f_line[0])
L = int(f_line[1])
S = []
s = ""
for i in range(N):
S.append(input())
S.sort()
for i in range(N):
s = s + S[i]
print("%s"%(s))
|
s959272074 | p04043 | u723612399 | 1567174776 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 203 | # -*- coding: utf-8 -*-
f_line = input().split()
N = int(f_line[0])
L = int(f_line[1])
S = []
s = ""
for i in range(N):
S.append(input())
S.sort()
for i in range(N):
s = s + S[i]
print("%s"%(s)) |
s360264602 | p04043 | u471539833 | 1567135695 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 162 | a=int(input())
b=int(input())
c=int(input())
if (a==5 and b==5 and c==7)or(a==5 and b==7 and c==5)or(a==7 and b==5 and c==5):
print("YES")
else:
print("NO")
|
s486254046 | p04043 | u471539833 | 1567135568 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 157 | a=int(input())
b=int(input())
c=int(input())
if (a==5 and b==5 and c==7)or(a==5 and b==7 and c==5)or(a==7 and b==5 and c==5):
return YES
else:
return NO |
s814059261 | p04043 | u726979570 | 1567069745 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 88 | w=str(input())
if w.count("5")=2 and w.count("7")=1:
print("YES")
else:
print("NO")
|
s161017995 | p04043 | u920438243 | 1567022628 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 534 | x,y = map(int,input().split())
list = [input() for i in range(x)]
if list[0]<=list[1] and list[0]<=list[2]:
if list[1]<=list[2]:
print(list[0]+list[1]+list[2])
else:
print(list[0]+list[2]+list[1])
if list[1]<=list[0] and list[1]<=list[2]:
if list[0]<=list[2]:
print(list[1]+list[0]+list[2])
else:
print(list[1]+list[2]+list[0])
if list[2]<=list[0] and list[2]<=list[1]:
if list[0]<=list[1]:
print(list[2]+list[0]+list[1])
else:
print(list[2]+list[1]+list[0])
|
s660514351 | p04043 | u920438243 | 1567022462 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 525 | x,y = map(int,input().split())
list = [input() for i in range(x)]
if list[0]<list[1] and list[0]<list[2]:
if list[1]<list[2]:
print(list[0]+list[1]+list[2])
else:
print(list[0]+list[2]+list[1])
if list[1]<list[0] and list[1]<list[2]:
if list[0]<list[2]:
print(list[1]+list[0]+list[2])
else:
print(list[1]+list[2]+list[0])
if list[2]<list[0] and list[2]<list[1]:
if list[0]<list[1]:
print(list[2]+list[0]+list[1])
else:
print(list[2]+list[1]+list[0])
|
s898395654 | p04043 | u417958545 | 1566864536 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 245 | a = int(input())
b = int(input())
c = int(input())
if a == 5 and b == 5 and c == 7:
print("YES")
elif a == 5 and b == 7 and c == 5:
print("YES")
elif a == 7 and b == 5 and c == 5:
print("YES")
else:
print("NO") |
s653392590 | p04043 | u417958545 | 1566863212 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 155 | A=list(map(int,input().split()))
A.sort()
#A = str(len("a"))
#B = str(len("b"))
#C = str(len("c"))
if A == [5,5,7]:
print("YES"
else:
print("NO") |
s561127283 | p04043 | u417958545 | 1566862923 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 239 | A = int(input())
B = int(input())
C = int(input())
if A == 5 and B == 5 and C == 7:
print("YES")
elif A == 5 and B == 7 and C == 5:
print("YES")
elif A == 7 and B == 5 and C == 5:
print("YES")
else:
print("NO")
|
s054447760 | p04043 | u417958545 | 1566862838 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 346 | A = int(input())
B = int(input())
C = int(input())
#A = str(len("a"))
#B = str(len("b"))
#C = str(len("c"))
if A == 5 and B == 5 and C == 7:
print("YES")
elif A == 5 and B == 7 and C == 5:
print("YES")
elif A == 7 and B == 5 and C == 7:
print("YES")
elif A == 7 and B == 5 and C == 5:
print("YES")
else:
print("NO")
|
s865250645 | p04043 | u417958545 | 1566862793 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 288 | A = int(input())
B = int(input())
C = int(input())
if A == 5 and B == 5 and C == 7:
print("YES")
elif A == 5 and B == 7 and C == 5:
print("YES")
elif A == 7 and B == 5 and C == 7:
print("YES")
elif A == 7 and B == 7 and C == 5:
print("YES")
else:
print("NO")
|
s677351450 | p04043 | u417958545 | 1566862365 | Python | PyPy3 (2.4.0) | py | Runtime Error | 170 | 38384 | 230 | A = int(input())
B = int(input())
C = int(input())
if A == 5 and B == 7 and C == 5:
print("YES")
elif A == 7 and B == 5 and C == 5:
print("YES")
elif A == 5 and B == 5 and C == 7:
print("YES")
else:
print("NO")
|
s595342940 | p04043 | u417958545 | 1566862314 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 235 | A = int(input())
B = int(input())
C = int(input())
if A == 5 and B == 7 and C == 5:
print("YES")
elif A == 7 and B == 5 and C == 5:
print("YES")
elif A == 5 and B == 5 and C == 7:
print("YES")
else:
print("NO")
|
s511498652 | p04043 | u417958545 | 1566862273 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 232 | A = int(input())
B = int(input())
C = int(input())
if A == 5 and B == 7 and C == 5:
print("YES")
elif A == 7 and B == 5 and C == 5:
print("YES")
elif A == 5 and B == 5 and C == 7:
print("YES")
else:
print("NO")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.