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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s510012237 | p04043 | u182898140 | 1580007145 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 287 | a,b,c=input().split()
if a==b==5:
if c==7:
return print("Yes")
else:
return print("No")
elif a==c==5:
if b==7:
return print("Yes")
else:
return print("No")
elif b==c==5:
if a==7:
return print("Yes")
else:
return print("No")
else:
return print("No") |
s174593658 | p04043 | u711626986 | 1579895039 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 178 | a, b, c=int(input(),split())
if a==7 and b==5 and c==5:
print("YES")
elif a==5 and b==7 and c==5:
print("YES")
elif a==5 and b==5 and c==7:
print("YES")
else:
print("NO") |
s328834553 | p04043 | u790048565 | 1579779443 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 265 | ins = list(map(int, input().split()))
N = ins[0]
L = ins[1]
Ss = []
for i in range(N):
Ss.append(input())
for i, a in enumerate(Ss):
key = a
j = i - 1
while j >= 0 and Ss[j] > a:
Ss[j + 1] = Ss[j]
j = j - 1
Ss[j + 1] = key
print(' '.join(Ss)) |
s246525597 | p04043 | u816070625 | 1579743123 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | a=map(int,input().split())
if a.count(5)==2 and a.count(7)==1:
print("Yes")
else:
print("No")
|
s328818337 | p04043 | u237299453 | 1579736852 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 3 | if |
s669396824 | p04043 | u993435350 | 1579724565 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 151 | A,B,C = map(int,inputs().split())
if A + B + C == 17:
if A + B or A + C or B + C == 10:
print("YES")
else:
print("NO")
else:
print("NO") |
s209909688 | p04043 | u303039933 | 1579710572 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38384 | 121 | A = map(int,input().split())
sorted(A)
if A[0] == 5 and A[1] == 5 and A[2] == 7:
print("YES")
else:
print("NO")
|
s181922994 | p04043 | u682563287 | 1579669981 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 257 | #N = input().split()
#huga = list(map(int, input().split()))
N = list(map(int, input().split()))
if (N[0]==7 or N[1]==7 or N[2]==7){
if (N[0]==5 or N[1]==5 or N[2]==5 and N[0]+N[1]+N[2]==12){
print YES
}
else{
print NO
}
}
else{
print NO
} |
s975964972 | p04043 | u871596687 | 1579378696 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | N,L = map(int,input().split())
s = [str(input()) for i in range(N)]
p = sorted(s)
print("".join(p))
|
s712122006 | p04043 | u443327476 | 1579300972 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 109 | 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') |
s122767434 | p04043 | u443327476 | 1579300705 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 78 | if (A=5^B=5^C=7|A=5^B=7^C=5|A=7^B=5^C=5):
print ("yes")
else:
print ("no") |
s590310085 | p04043 | u012131682 | 1579227828 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 286 | import sys
a = int(input())
b = int(input())
c = int(input())
if (a == 5 or a == 7):
if (b == 5 or b == 7):
if (c == 5 or c == 7):
d = a * b * c
if (d == 175):
print("YES")
else: print("NO")
else: print("NO")
else: print("NO")
else:
print("NO") |
s235838224 | p04043 | u772062359 | 1578893784 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38384 | 148 | a , b = map(int,input().split())
list = []
papa = ""
for i in range(b):
list.append(input())
c = sorted(list)
for x in c:
papa += x
print(papa) |
s513091256 | p04043 | u566297428 | 1578852668 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 44 | A,B,C = list(map(int,input().split()))
if
|
s992095903 | p04043 | u241190800 | 1578792892 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 110 | tupni = [int(idx) for idx in input.split(" ")]
if tupni.sort() == [5,5,7]:
print("YES")
else:
print("NO")
|
s961237892 | p04043 | u241190800 | 1578792842 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | tupni = [int(idx) for idx in input.split()]
if tupni.sort() == [5,5,7]:
print("YES")
else:
print("NO") |
s144245956 | p04043 | u710907926 | 1578788581 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | L, N = map(int, input().split())
s = [input() for i in range(N)]
s.sort()
print(''.join(s))
|
s176350392 | p04043 | u805045107 | 1578609354 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 122 | N, L = map(int,input().split())
words = []
for i in range(N):
words.append(input())
words.sort()
print(''.join(words)) |
s706432854 | p04043 | u709686535 | 1578455449 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 134 | sort_list = list(int(map, input().split()))
if sort_list.count(5) == 1 and sort_list.count(7) == 2:
print("YES")
else:
print("NO") |
s997145750 | p04043 | u427984570 | 1578331276 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 125 | str = input()
count5 = str.count(5)
count7 = str.count(7)
if count5 == 2 and count7 == 1:
print('Yes')
else:
print('NO')
|
s475685895 | p04043 | u427984570 | 1578325853 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 172 | num = input().split()
str = input()
strc = ''
for i in range(int(num[0])-1):
strc = input()
if str > strc:
str = strc + str
else:
str = str + strc
print(str) |
s105670510 | p04043 | u427984570 | 1578324500 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 211 | num= input().split()
5count = 0
7count = 0
for i in range(len(num)):
if num[i] == '5':
5count += 1
elif num[i] == '7':
7count += 1
if 5count == 2 and 7count == 1:
print('YES')
else:
print('NO') |
s208632186 | p04043 | u427984570 | 1578324409 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 211 | num= int(input().split())
5count = 0
7count = 0
for i in range(len(num)):
if num[i] == 5:
5count += 1
elif num[i] == 7:
7count += 1
if 5count == 2 and 7count == 1:
print('YES')
else:
print('NO') |
s050195933 | p04043 | u127499732 | 1578008517 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | a = list(map(int,input()))
b = a.count('5')
c = a.count('7')
if b == 2 and c ==1:
print('YES')
else:
print('NO') |
s331775926 | p04043 | u127499732 | 1578008479 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 140 | a = list(map(int,input()))
b = a.count(’5')
c = a.count(’7')
if b == 2 and c ==1:
print('YES')
else:
print('NO') |
s050631717 | p04043 | u127499732 | 1578008431 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 142 | a = list(map(int,input()))
b = a.count(’5')
c = a.count(’7')
if b == 2 and c ==1:
pritn('YES')
else:
print('NO')
|
s165142836 | p04043 | u000217253 | 1578001228 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 266 | a,b,c=(int(x) for x in input().split())
7_count=0
5_count=0
def check(x):
if x==5:
global 5_count
5_count+=1
elif x==7:
global 7_count
7_count+=1
check(a)
check(b)
check(c)
if 7_count==1 and 5_count==2:
print("YES")
else:
print("NO")
|
s438015842 | p04043 | u000217253 | 1578001049 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 256 | a,b,c=(int(x) for x in input().split())
7_count=0
5_count=0
def check(x):
if x==5:
global 5_count
5_count+=1
elif x==7:
global 7_count
7_count+=1
check(a)
check(b)
check(c)
if 7_count=1 and 5_count=2:
print("YES")
else:
print("NO")
|
s638442477 | p04043 | u676015657 | 1577918957 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 102 | a, b, c = map(int, input().split())
if a+b+c == 17 and a=5, b=7, c=5;
print("YES")
else;
print("NO") |
s043605122 | p04043 | u318024671 | 1577912027 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3188 | 89 | a, b, c = map(int, input().split())
if a+b+c = 19:
print("Yes")
else:
print("No") |
s883467072 | p04043 | u654085902 | 1577684159 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 224 | m, n = map(int,input().split())
l = map(str,input().split())
l2 = {str(i) for i in range(10)}
l3 = set(l2) - set(l)
ans = 0
for i in range(m, 100000):
nums = set(str(i))
if nums <= l3:
print(i)
break |
s983360800 | p04043 | u986480146 | 1577582954 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 247 | A, B, C = map(int, input().split())
if A + B + C == 17:
if A == 5:
if B + C == 12:
print(YES)
else:
print(NO)
if A == 7:
if B + C == 10:
print(YES)
else:
print(NO)
else:
print(NO)
else:
print(NO) |
s847345212 | p04043 | u986480146 | 1577582805 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 247 | A, B, C = map(int, input().split())
if A + B + C == 17:
if A == 5:
if B + C == 12:
return YES
else:
return NO
if A == 7:
if B + C == 10:
return YES
else:
return NO
else:
return NO
else:
return NO |
s980229367 | p04043 | u986480146 | 1577582312 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 125 | A, B, C = int(input().split().split())
array = [A, B, C]
sa = sorted[array]
if sa = [5, 5, 7]:
return YES
else:
return NO |
s040614661 | p04043 | u141429472 | 1577575741 | Python | PyPy3 (2.4.0) | py | Runtime Error | 170 | 38640 | 1022 | import sys
input = sys.stdin.readline
N,K=map(int,input().rstrip().split())
D=list(map(int,input().rstrip().split()))
def dfs(N):
for i in range(K):
if(str(N).find(str(D[i]))!=-1):
dfs(N+1)
return
else:
print(N)
def resolve():
dfs(N)
from io import StringIO
import unittest
class TestClass(unittest.TestCase):
def assertIO(self, input, output):
stdout, stdin = sys.stdout, sys.stdin
sys.stdout, sys.stdin = StringIO(), StringIO(input)
resolve()
sys.stdout.seek(0)
out = sys.stdout.read()[:-1]
sys.stdout, sys.stdin = stdout, stdin
self.assertEqual(out, output)
def test_入力例_1(self):
input = """1000 8
1 3 4 5 6 7 8 9"""
output = """2000"""
self.assertIO(input, output)
def test_入力例_2(self):
input = """9999 1
0"""
output = """9999"""
self.assertIO(input, output)
if __name__ == "__main__":
#unittest.main()
resolve() |
s176610403 | p04043 | u102960641 | 1577416901 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 535 | h,w,a,b = map(int, input().split())
mod = 10**9 + 7
n = 10**5 * 2 + 1
fact = [1]*(n+1)
rfact = [1]*(n+1)
r = 1
for i in range(1, n+1):
fact[i] = r = r * i % mod
rfact[n] = r = pow(fact[n], mod-2, mod)
for i in range(n, 0, -1):
rfact[i-1] = r = r * i % mod
# nPk (mod MOD) を求める
def perm(n, k):
return fact[n] * rfact[n-k] % mod
# nCk (mod MOD) を求める
def comb(n, k):
return fact[n] * rfact[k] * rfact[n-k] % mod
ans = 0
for i in range(b,w):
ans = (ans + comb(h-a-1+i,i) * comb(w-i+a-2,a-1)) % mod
print(ans) |
s848242968 | p04043 | u201082459 | 1577321751 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 131 | x = list(map(str,input().split()))
if '2' == x.value_counts('5') and '1' == x.value_counts('7'):
print('YES')
else:
print('NO') |
s651107468 | p04043 | u810457760 | 1577308481 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 21 | a = input().split()
p |
s525872771 | p04043 | u771577506 | 1577226283 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | x = str(input())
if count(x,"5")==2 and count(x,"7")==1:
print("YES")
else:
print("NO") |
s098870014 | p04043 | u355137116 | 1577205674 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | s = map(int, input().split())
return (s[0] == s[1] == 5 and s[2] == 7 or s[2] == s[1] == 5 and s[0] == 7 or s[0] == s[2] == 5 and s[1] == 7)
|
s031876204 | p04043 | u355137116 | 1577205594 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 139 | s = map(int, input().split())
return (s[0] == s[1] == 5 and s[2] == 7 or s[2] == s[1] == 5 and s[0] == 7 s[0] == s[2] == 5 and s[1] == 7)
|
s066887132 | p04043 | u560301743 | 1577155114 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | N, _ = map(int, input().split())
values = [input() for _ in range(N)]
print(''.join(sorted(values))) |
s593918387 | p04043 | u171065106 | 1577149277 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 132 | a, b, c, = map(int(input().split()))
h = [5, 5, 7]
b = [a, b, c]
if sorted(h) == sorted(b):
print("YES")
else:
print("NO")
|
s859556287 | p04043 | u268792407 | 1577131800 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | a,b,c=map(int,input().split())
aa=sort([a,b,c])
if aa == [5,5,7]:
print("YES")
else:
print("NO") |
s993246363 | p04043 | u892538842 | 1577096756 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 325 | import math
h, w, a, b = map(int, input().split(' '))
MOD = 10**9 + 7
def ncr(n, r):
f = math.factorial
return f(n) / f(r) / f(n-r)
r = 0
for i in range(b, w):
y1 = h - a - 1
x1 = i
y2 = a - 1
x2 = w - i - 1
p = (ncr(x1 + y1, x1) * ncr(x2 + y2, x2)) % MOD
r = (r + p) % MOD
print(int(r)) |
s638298266 | p04043 | u112567325 | 1576842346 | Python | PyPy3 (2.4.0) | py | Runtime Error | 169 | 38256 | 102 | A,B,C = list(map(int,input().split()))
if sort([A,B,C]) == [5,5,7]:
print("YES")
else:
print("NO") |
s595906784 | p04043 | u972892985 | 1576711197 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 83 | n,l=map(int,input().split())
s=sorted([input() for i in range(n)])
print(*s,sep="") |
s890771249 | p04043 | u343092716 | 1576643258 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 225 | n, k = map(int, input().split())
dislikes = input().split()
payment = n
while True:
tmp = str(payment)
for t in tmp:
if t in dislikes:
break
else:
break
payment += 1
print(payment) |
s337042599 | p04043 | u181215519 | 1576603363 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 107 | in = list(map(int,input().split()))
in.sort()
if in=[5,5,7] :
print( 'Yes' )
else :
print( 'No' ) |
s182944008 | p04043 | u181215519 | 1576603183 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 285 | number1 = input("First number: ")
number2 = input("\nSecond number: ")
number3 = input("\nSecond number: ")
if ( (number1==5&number1==7&number1==5) |
(number1==7&number1==5&number1==5) |
(number1==5&number1==5&number1==7) ) :
print("Yes")
else:
print("No" ) |
s704997992 | p04043 | u417014669 | 1576548353 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 98 | a,b,c=map(int,input().split())
if sorted(list[a,b,c])==[5,5,7]:
print("YES")
else:
print("NO") |
s776095123 | p04043 | u473023730 | 1576433612 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 103 | a=input().split()
a=[int(i) for i in a]
a.sort()
if a=[5, 5, 7]:
print("YES")
else:
print("NO")
|
s385261581 | p04043 | u473023730 | 1576433544 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 99 | a=[int(i) for i in input().split()]
a.sort()
if a=[5, 5, 7]:
print("YES")
else:
print("NO")
|
s196026286 | p04043 | u473023730 | 1576433493 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | a=[int(i) for i in input().split()]
a.sort()
if a=[5, 5, 7]:
print("YES")
else print("NO");
|
s861348925 | p04043 | u473023730 | 1576433466 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | a=[int(i) for i in input().split()]
a.sort()
if a=[5, 5, 7]:
print("YES")
else print("NO"):
|
s597664832 | p04043 | u373958718 | 1576272953 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | def abc ( ) : \n l = '' . join ( input ( ) . split ( ) ) \n print ( 'YES' if l . replace ( '5' , '' ) == '7' else 'NO' ) \n \n \n abc ( ) |
s113472835 | p04043 | u866682319 | 1576183141 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 185 | N = list(map(int,input().split()))
five = 0
seven = 0
for i in N:
if i == 5:
five += 1
elif i == 7:
seven += 1
if five == 2 and seven == 1:
print("YES")
else:
print("NO) |
s785514931 | p04043 | u617037231 | 1575948868 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 172 | a,b,c = map(int,input().split())Liste= list(map(str,input().split()))
P = Liste.count('5')
Q = Liste.count('7')
if P == 2 and Q == 1:
print('YES')
else:
print('NO') |
s893277241 | p04043 | u583507988 | 1575923610 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 123 | 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");
end |
s173668595 | p04043 | u213330296 | 1575669435 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 162 | # -*- coding: utf-8 -*-
# 整数の入力
a, b, c = map(int, input().split())
# 575判定式
if(a*b*c == 5*7*5 && a+b+c == 17):
print("YES")
else:
print("NO") |
s373271277 | p04043 | u348544277 | 1575516150 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 161 | a = input()
b = input()
c = input()
if len(a) == 5 and len(b) == 5:
if len(c) == 7:
print('yes')
else:
print('no')
else:
print('no') |
s496652683 | p04043 | u799691369 | 1574910767 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 165 | A, B, C = map(input().split())
l = [5, 5, 7]
if A in l:
l.remove(A)
if B in l:
if C in l:
print('YES')
break
print('NO') |
s628299046 | p04043 | u774160580 | 1574907672 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38256 | 133 | ABC = [int(i) fo i in input())
ABC.sort()
if sum(ABC) == 17 and ABC[0] == 5 and ABC[2] == 7:
print("YES")
else:
print("NO")
|
s066653964 | p04043 | u571832343 | 1574825502 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 230 | A,B,C = map(input().split())
a, b, c = len(A), len(B), len(C)
if a == 5 or a == 7:
if b == 5:
if c == 5:
print('NO')
else:
print('YES')
else:
if c == 5:
print('YES')
else:
print('NO') |
s001036267 | p04043 | u804505290 | 1574793111 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 189 | A,B,C = map(int, input().split())
if A==7 and B==5 and C==5:
print("Yes")
else if A==5 and B==5 and C==7:
print("Yes")
else if A==5 and B==7 and C==5:
print("Yes")
else:
print("No") |
s415849840 | p04043 | u340947941 | 1574435428 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 232 | ##### 解けた #####
A,B,C=list(map(int,input().split(" ")))
if (len(A)==5 and len(B)==7 and len(C)==5) or (len(A)==7 and len(B)==5 and len(C)==5) or (len(A)==5 and len(B)==5 and len(C)==7):
print("YES")
else:
print("NO") |
s910065980 | p04043 | u979823197 | 1574426882 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | l =list(map(int,input().split()))
if l[0]+l[1]+[2]==17 and l[0]*l[1]*l[2]== 175:
print('Yes')
else:
print('No') |
s617605498 | p04043 | u979823197 | 1574426438 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | a,b,c =int(x) for in input().split()
if a+b+c==17 and a*b*c==175:
print('Yes')
else:
print('No') |
s815122129 | p04043 | u716530146 | 1574369606 | Python | PyPy3 (2.4.0) | py | Runtime Error | 274 | 63852 | 427 | #!/usr/bin/env python3
import sys, math, itertools, heapq, collections, bisect, fractions
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**8)
inf = float('inf')
ans = count = 0
n,k=map(int,input().split())
D=set(input().split())
while True:
ns=str(n)
for ni in ns:
if ni in D:
break
else:
print(n)
exit()
n+=1
continue
|
s139649363 | p04043 | u360053454 | 1574234246 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 103 | a, b, c = map(int, input().split())
if sorted(a, b, c) == [5, 5, 7]:
print('YES')
else:
print('NO') |
s006892585 | p04043 | u360053454 | 1574234044 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 90 | A = list(map(int, input().split()))
if A == [5,7,5]
print('YES')
else:
print('NO') |
s789451583 | p04043 | u906024886 | 1574203975 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 | A = int(input()).split()
if A.count("5") == 2 and A.count("7")==1:
print("YSE")
else:
print("NO") |
s285101555 | p04043 | u906024886 | 1574203937 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | A = int(input()).split()
if A.count.("5") == 2 and A.count("7")==1:
print("YSE")
else:
print("NO") |
s595519916 | p04043 | u906024886 | 1574203915 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 100 | A = int(input()).split()
if A.count.("5") == 2 and a.count("7")==1:
print("YSE")
else:
print("NO") |
s714171186 | p04043 | u234186715 | 1574199350 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3056 | 136 | a = list(map(int, input().split()))
s = [input() for i in range(a[0])]
newa= sorted(s)
moji =''
for x in newa:
moji += x
print(moji) |
s490667560 | p04043 | u234186715 | 1574199160 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 131 | a = list(map(int, input().split()))
s = [input() for i in range(a[0])]
newa= sorted(s)
print(a[0],a[1])
[print(i) for i in newa]
|
s740123620 | p04043 | u211025746 | 1574192260 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 446 | NL=input().split()
N=int(NL[0])
L=int(NL[1])
S=[]
rank=[]
for i in range(N):
S.append(input())
rank.append(0)
temp=[]
for i in range(N):
for j in range(N):
if(S[i]<S[j]):
temp.append(int(1))
else:
temp.append(int(0))
for i in range(N*N):
a=i%N
rank[a]+=temp[i]
j=0
moji=""
for i in range(N):
for j in range(N):
if(i==rank[j]):
moji=moji+S[j]
print(moji) |
s988567501 | p04043 | u211025746 | 1574192238 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 456 | NL=input().split()
N=int(NL[0])
L=int(NL[1])
S=[]
rank=[]
for i in range(N):
S.append(input())
rank.append(0)
temp=[]
for i in range(N):
for j in range(N):
if(S[i]<S[j]):
temp.append(int(1))
else:
temp.append(int(0))
for i in range(N*N):
a=i%N
rank[a]+=temp[i]
j=0
moji=""
for i in range(N):
for j in range(N):
if(i==rank[j]):
moji=moji+S[j]
print(moji)
|
s377784778 | p04043 | u094948011 | 1574136175 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 273 | A = int(input())
B = int(input())
C = int(input())
if A == 5 or A == 7:
if B == 5 or B == 7:
if C == 5 or C == 7:
if A + B + C == 17:
print('Yes')
else:
print('No')
else:
print('No')
else:
print('No')
else:
print('No')
|
s598529296 | p04043 | u894685221 | 1574026572 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | N, L = map(int, input().split())
s = sorted([input() for i in range(N)])
print(*s, sep="")
|
s977372704 | p04043 | u522496678 | 1573976248 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 138 | A, B, C = int(input()), int(input()), int(input())
if [A, B, C].count(5) == 2 and [A, B, C].count(7) == 1: print("Yes")
else: print("No") |
s866954681 | p04043 | u522496678 | 1573976176 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 134 | A, B, C = ( int( input() ) for i in range(3) )
if [A, B, C].count(5) == 2 and [A, B, C].count(7) == 1: print("Yes")
else: print("No") |
s933001239 | p04043 | u040057159 | 1573704271 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 95 | A,B,C=(int(x) for x in input().split())
if A+B+C==17:
print(YES)
else:
print(NO)
|
s420944637 | p04043 | u673981655 | 1573700202 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 252 | n = list(map(int, input().split()))
N = n[0]
K = n[1]
d = list(map(int, input().split()))
num = [i for i in range(1,10)]
for i in d:
if i == 0:
continue
else:
num.remove(i)
total = N*min(num)
if total > N:
print(N)
else:
print(total) |
s248644009 | p04043 | u633450100 | 1573674653 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 334 | N,K = [int(i) for i in input().split()]
#D = [int(i) for i in input().split()]は数値代入
#文字列を複数代入
D = input().split()
#集合に置き換える(型はset)
D = set(D)
use = set(['0','1','2','3','4','5','6','7','8','9'])
use -= D
for i in range(N,10001):
if use >= set(str(i)):
print(i)
break
|
s564037552 | p04043 | u124498235 | 1573420727 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | n, l = map(int, input().split())
a = [input() for _ in range(n)]
a.sort()
print ("".join(a)) |
s395440249 | p04043 | u914120277 | 1573363001 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 176 | S=input()
a, b, c = (int(i) for i in S.split())
d=(a+b+c)/17
e=(max(a,b)-2+max(a,c)+max(b,c))/17
if(d==1 and e==1): print("YES")
else: print("NO") |
s941187873 | p04043 | u914120277 | 1573362831 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 170 | a, b, c = (int(i) for i in input().split())
d=(a+b+c)/17
e=(max(a,b)-2+max(a,c)+max(b,c))/17
if(d==1 and e==1): print("YES")
else: print("NO") |
s156092197 | p04043 | u914120277 | 1573362521 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 175 | a, b, c = (int(i) for i in input().split())
d=(a+b+c)/17
e=(max(a,b)-2+max(a,c)+max(b,c))/17
if(d==1 and e==1): print("YES")
else: print("NO")
|
s465350263 | p04043 | u914120277 | 1573362386 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 155 | a, b, c = (int(i) for i in input().split())
d=(a+b+c)/17
e=(max(a,b)-2+max(a,c)+max(b,c))/21
if(d==1 and e==1)
print(min(a,b,c), max(a,b,c), min(a,b,c)) |
s772840587 | p04043 | u902786897 | 1573286022 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 85 | a=list(map(int,input.split()))
if a.sort==[5,5,7]:
print("YES")
else:
print("NO") |
s126834868 | p04043 | u633548583 | 1573258729 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | N,L=map(int,input().split())
S=[input() for i in range(N)]
print(''.join(S.sort()))
|
s322245416 | p04043 | u633450100 | 1573182393 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 186 | A,B,C = [int(i) for i in input().split()]
list = [A,B,C]
for i in list:
if i == 5:
go += 1
if i == 7:
nana += 1
if go == 2 and nana == 1:
print("YES")
else:
print("NO") |
s820786028 | p04043 | u940061594 | 1573017572 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 189 | #Iroha Loves Strings (ABC Edition)
N, L = map(int, input().split())
S = []
for _ in range(N):
S.append(input())
sort = sorted(S)
R = ""
for i in range(0,N):
R = R + sort[i]
print(R) |
s672964822 | p04043 | u940061594 | 1572998208 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 347 | #Iroha Loves Strings (ABC Edition)
N, L = map(int, input().split())
S = []
for _ in range(N):
S.append(input())
R = []
K = ""
R.append(S[0])
for i in range(1, N):
for j in range (0, i):
if S[i] < R[j]:
R.insert(j,S[i])
if S[i] >= R[i-1]:
R.append(S[i])
for i in range(0,N):
K = K + R[i]
print(K) |
s367004399 | p04043 | u284056243 | 1572916453 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38256 | 293 | x,y,z = map(int,input().split())
if(x=5):
if(y=5):
if(z=7):
print("YES")
else:
print("NO")
elif(y=7):
if(z=5):
print("YES")
else:
print("NO")
elif(x=7):
if(y=5):
if(z=5):
print("YES")
else:
print("NO")
else:
print("NO")
|
s941333719 | p04043 | u284056243 | 1572916119 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38384 | 96 | x,y,z = map(int,input().split())
if(x=5 and y=7 and z=5):
print("YES")
else:
print("NO") |
s734514159 | p04043 | u920438243 | 1572909649 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 165 | ns,k = input().split()
nlist = input().split()
nslist = list(ns)
while set(nslist) & set(nlist):
ns = int(ns)+1
ns = str(ns)
nslist = list(ns)
print(ns)
|
s571327326 | p04043 | u032468447 | 1572894805 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 121 | S = "".join(list(map(str,input().split())))
if S.count("5") == 2 and S.count("7") == 1:
print("YES")
else:
print("NO) |
s651309871 | p04043 | u503294750 | 1572818955 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 225 | line=input().split()
N=int(line[0])
K=int(line[1])
D=input().rstrip().split()
for i in range(N,10*N+1):
s=str(i)
flag=True
for x in D:
if x in s:
flag=False
break
if flag:
print(s)
break
else:
continue |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.