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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s394226169 | p03469 | u652150585 | 1540611652 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 223 | n,y=map(int,input().split())
#print(n,y)
for i in range(n+1):
for j in range(n+1-i):
if 10000*i+5000*j+1000*(n-i-j)==y:
print(i,j,n-i-j)
exit()
else:
print("-1 -1 -1") |
s335453786 | p03469 | u652150585 | 1540611570 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 221 | n,y=map(int,input().split())
#print(n,y)
for i in range(n+1):
for j in range(n+1-i):
if 10000*i+5000*j+1000*(n-i-j)==y:
print(i,j,n-i-j)
exit()
else:
print(-1,-1,-1) |
s767357814 | p03469 | u128914900 | 1540496733 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 64 | date=input()
#if date[0:4]=="2017":
date="2018"+[4:]
print(date) |
s231664710 | p03469 | u811576279 | 1539318061 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 251 | #-*- coding:utf-8 -*-
import sys
N, Cost = map(int, input().split())
a_out, b_out = -1, -1
for i in range(N+1):
for j in range(N-i+1):
if 10000*i + 5000*j + 1000*(N-i-j) == Cost:
print(i, j, N-i-j)
sys.exit()
print('-1 -1 -1') |
s961625554 | p03469 | u518556834 | 1539217747 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 29 | s = input()
s[3] = 8
print(s) |
s469309382 | p03469 | u518556834 | 1539217565 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 31 | s = input()
s[3] = "8"
print(s) |
s679354678 | p03469 | u365375535 | 1538363605 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 56 | S = input().split("/")
S[0] = "2018"
print(S.join("/"))
|
s465752443 | p03469 | u215315599 | 1537841681 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 767 | #AtCorder Beginner Contest 085 C Otoshidama
n, y = map(int, input().split())
a = -1
b = -1
c = -1
for i in range(n + 1):
if 10000*i == y and i == n:
a = i
b = 0
c = 0
break
else:
for j in range(n-i + 1):
if i+j == n and 10000*i + 5000*j == y:
... |
s578616239 | p03469 | u157850041 | 1537821418 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 234 | n, y = list(map(int, input().split()))
for i in range(n + 1):
for j in range((n + 1) - i + 1):
k = n - i - j
if i * 10000 + j * 5000 + k * 1000 == y:
print(i, j, k)
exit(0)
print(-1, -1, -1) |
s663878058 | p03469 | u462538484 | 1537666106 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 37 | print(input().replace("2017", "2018)) |
s568509876 | p03469 | u293579463 | 1537551869 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 422 | N, Y = map(int, input().split())
a, b, c = -1, -1, -1
if Y >= 2000 * 10000:
ZN = 1
YN = 1
XN = 2000
else:
ZN = min(N, Y//1000)
YN = min(N, Y//5000)
XN = min(N, Y//10000)
for z in range(ZN + 1):
for y in range(YN + 1):
for x in range(XN + 1):
if x + y + z == N and 10... |
s080494530 | p03469 | u971256474 | 1536953326 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 95 | #include<bits/stdc++.h>
using namespace std;
int main(){
int M;
cin>>M;
cout<<48-M<<endl;
} |
s638679496 | p03469 | u960513073 | 1536820072 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 463 | # -*- coding: utf-8 -*-
n = int(raw_input())
l = []
for i in range(n):
l.append(int(raw_input()))
#print(l)
flag = [0] *100
#print(flag)
for j in l:
if flag[j] == 0:
flag[j] = 1
#print(flag)
num = 0
for k in flag:
# print(k)
if k == 1:
num += 1
print(num)
"""
##これだとエラーでる
##flag[k]だとflag[0]かflag[1]にしかな... |
s416429830 | p03469 | u636137609 | 1536093467 | Python | PyPy3 (2.4.0) | py | Runtime Error | 174 | 38512 | 40 | date = input()
date[3] = '8'
print(date) |
s394502319 | p03469 | u457901067 | 1534817526 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 32 | S = input()
S[3] = '8'
print(S) |
s578867489 | p03469 | u277802731 | 1534787859 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 74 | #85b
n=int(input())
d=set([int(input()) for i in range(n) ])
print(len(d)) |
s849849090 | p03469 | u427344224 | 1534431572 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38256 | 581 | N, H = map(int, input().split())
a_list = []
b_list = []
for i in range(N):
a, b = map(int, input().split())
a_list.append(a)
b_list.append(b)
count = 0
a = max(a_list)
b_list.sort()
while True:
if len(b_list) >= 1:
if b_list[-1] >= a:
b = b_list.pop(-1)
H -= b
... |
s739393709 | p03469 | u803647747 | 1534194046 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 392 | N, Y = map(int, input().split())
counter = True
for i in range(N+1):
for j in range(N - i+1):
if j >= 0 and (N-i-j) >= 0 and counter:
if 10**4*i + 5*10**3*j + 10**3*(N-i-j) == Y:
#print(str(i)+" "+str(j)+" "+str(N-i-j))
print(i, j, N-i-j)
counter =... |
s411660176 | p03469 | u710921979 | 1533686578 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 206 | n,m=map(int,input().split())
for x in range(n+1):
for y in range(n+1-x):
if 10000*x+5000*y+1000*(n-x-y)==m and x+y+(n-x-y)==n:
print(x,y,(n-x-y))
exit()
print('-1 -1 -1') |
s490723901 | p03469 | u933622697 | 1533307373 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 250 | n , y= map(int, input().split())
for i in range(n + 1):
for j in range(n + 1 - i):
if 10000 * i + 5000 * j + 1000 * k == y:
print(i, j, n - i - j)
exit()
print(-1, -1, -1) |
s593981746 | p03469 | u485716382 | 1532752271 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3056 | 336 | def solve():
n, y = map(int, input().split())
y = y // 1000
for nogu in range(n+1):
for higu in range(n + 1 - nogu):
yuki = n - higu - nogu
total = yuki*10 + higu*5 + nogu
if total == y:
print(yuki, higu, nogu)
return
print("-1 ... |
s483418904 | p03469 | u513081876 | 1532728539 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 117 | n = int(input())
list_d=[input() for i in range(n)]
new_list_d = set(list_d)
sum1 = len(list(new_list_d))
print(sum1) |
s052794074 | p03469 | u513081876 | 1532728275 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 123 | n = int(input())
list_d = list(map(int, input().split()))
new_list_d = set(list_d)
sum1 = len(list(new_list_d))
print(sum1) |
s231473640 | p03469 | u407730443 | 1532608845 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 32 | s = input()
s[3] = "8"
print(s) |
s323770126 | p03469 | u636775911 | 1531704527 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 53 | #coding:utf-8
s=input()
s.replace(2017,2018)
print(s) |
s712940825 | p03469 | u627417051 | 1531087467 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 44 | S = list(input())
S[3] = 8
print("".join(S)) |
s242036585 | p03469 | u144985238 | 1530853676 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 483 | # [2,2,4,5] = [3,3,3]
# 重複を排除したときの要素の数がその段数となる
def getElementNum(N,a):
"""
>>> getElementNum(4,[2,4,6,8])
4
"""
b = list(set(a))
return len(b)
def main():
N = int(input())
a = []
for i in range(N):
a.append( int( input() ) )
result = getElementNum(N,a)
print(re... |
s300329108 | p03469 | u506302470 | 1530672360 | Python | PyPy3 (2.4.0) | py | Runtime Error | 170 | 38640 | 28 | s=intput()
s[3]='8'
print(s) |
s990040477 | p03469 | u026788530 | 1530328156 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 58 | S = int(input().split('/'))
print("2018/"+S[1]+'/'+S[2])
|
s751930830 | p03469 | u094778153 | 1530298170 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3056 | 421 | def calculate_money():
input_list = input().split()
N = int(input_list[0])
Y = int(input_list[1])
for x_num in range(0, N + 1):
for y_num in range(0, N + 1 - x_num):
z_num = N - x_num - y_num
if 10000 * x_num + 5000 * y_num + 1000 * z_num == Y:
print(x_nu... |
s971685850 | p03469 | u409064224 | 1530059296 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 31 | s = input()
s[3] = "8"
print(s) |
s786501405 | p03469 | u004025573 | 1529352711 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 31 | S = input()
S[3]="8"
print(S) |
s971381787 | p03469 | u734816542 | 1527624191 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 264 | n, y = map(int, input().split())
for i in range(0, n+1):
for j in range(0, n+1-i):
k = n - (i + j)
sum_price = 10000*i + 5000*j + 1000*k
if n == i + j + k and sum_price == y:
print(i, j, k)
exit()
print(-1, -1, -1)
|
s417052248 | p03469 | u634493411 | 1527043607 | Python | PyPy3 (2.4.0) | py | Runtime Error | 162 | 38512 | 540 | # https://abc085.contest.atcoder.jp/tasks/abc085_d
from math import ceil
from operator import itemgetter
from itertools import chain
def trans(lst):
return ((int(lst[0]), False), (int(lst[1]), True))
a,b = map(int, input().split())
data = list(chain.from_iterable([trans(input().split()) for _ in range(a)]))
dat... |
s268107974 | p03469 | u634493411 | 1527043009 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38384 | 513 | # https://abc085.contest.atcoder.jp/tasks/abc085_d
from operator import itemgetter
from itertools import chain
def trans(lst):
return ((int(lst[0]), False), (int(lst[1]), True))
a,b = map(int, input().split())
data = [*chain.from_iterable([trans(input().split()) for _ in range(a)])]
data.sort(key=itemgetter(0), ... |
s987566748 | p03469 | u156931988 | 1526247671 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 407 | import sys
num,total = map(int,input().split())
if(total/10000 > num):
mannum = num
else:
mannum = total//10000
if(total/5000 > num):
gosennum = num
else:
gosennum = total//5000
for i in range(mannum+1):
for j in range(max(1,min([num - i,gosennum+1]))):
if(10000*i + 5000*j + 1000*(num-i-... |
s455201232 | p03469 | u503901534 | 1525900928 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 81 | s = list(str(input()))
s[3] = 8
ss = ''
for i in s:
ss = ss + i
print(ss) |
s663253889 | p03469 | u734805215 | 1525111395 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 285 | N,yen=map(int, input().split())
for X in range(N+1):
for Y in range(N+1):
if(X +Y > N):
break
elif(10000*X+5000*Y+1000*(N-X-Y) == yen):
print(str(X)+" "+str(Y)+" "+" "+str(N-X-Y))
exit()
print("-1 -1 -1") |
s026555751 | p03469 | u503901534 | 1524771036 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 92 | s = list(str(input()))
s[3] = 8
t = ''
for i in range(len(s)):
t = t + s[i]
print(t)
|
s275957588 | p03469 | u937889033 | 1524358479 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | def main():
S = input()
S[3] = '8'
print(S)
return
if __name__ == '__main__':
main() |
s102742622 | p03469 | u381574135 | 1524135789 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 143 | # -*- coding: utf-8 -*-
N = int(input())
input_dict = {}
for i in range(N):
a = int(input())
input_dict[a] = 1
print(len(input_dict)) |
s983816083 | p03469 | u100614926 | 1523391357 | Python | PyPy3 (2.4.0) | py | Runtime Error | 173 | 38512 | 141 | n=int(input())
a=[]
t=1
for i in range(n):
a.append(int(input()))
a.sort()
for i in range(n-1):
if a[i]<a[i+1]:
t+=1
print(t) |
s356617036 | p03469 | u504770075 | 1523388803 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 233 | n=int(input())
d=[]
for i in range(n):
d.append(int(input()))
k=0
for i in range(n-1):
for j in range(i+1,n):
if d[i]==d[j]:
j -= 1
break
if j == n-1:
k += 1
k += 1
print(k) |
s939272337 | p03469 | u657541767 | 1523052187 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 273 | n, y = map(int, input().split())
res = [-1, -1, -1]
for a in range(n + 1):
for b in range(n - a + 1):
if 10000 * a + 5000 * b + 1000 * (n - a - b) == y:
res[0] = a
res[1] = b
res[2] = n - a - b
print(' '.join(map(str, res)))
|
s607272465 | p03469 | u299801457 | 1522285981 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 32 | s=input()
s="2018"+s[4:]
print s |
s301893674 | p03469 | u934547177 | 1521782962 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 38 | d=input()
print(d.repalace('7/','8/')) |
s764128989 | p03469 | u934547177 | 1521782930 | Python | Python (3.4.3) | py | Runtime Error | 22 | 2940 | 35 | d=input()
print(f'{d[:3]}8{d[4:]}') |
s828278521 | p03469 | u127856129 | 1521393989 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 28 | a=input()
a[3]="8"
print(a)
|
s053973420 | p03469 | u127856129 | 1521393837 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 68 | a=input()
if a[3]!="8":
a[3]="8"
print(a)
else:
print(a) |
s007665699 | p03469 | u127856129 | 1521393780 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 64 | a=input()
if a[3]!=8:
a[3]=8
print(a)
else:
print(a) |
s437914612 | p03469 | u127856129 | 1521393744 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 45 | a=input()
if a[3]!=8:
a[3]=8
print(a) |
s035640800 | p03469 | u729707098 | 1521253269 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 301 | n,h = (int(i) for i in input().split())
x = [[int(i) for i in input().split()] for i in range(n)]
a,b = 0,[]
for j in x:
if a < j[0]: a = j[0]
b.append(j[1])
num = 0
for j2 in b:
if j2 >= a:
h -= j2
num +=1
if h%a==0: answer = (h-h%a)//a + num
else: answer = (h-h%a)//a + num + 1
print(answer)
|
s731527399 | p03469 | u214344212 | 1521244885 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 344 | N,Y=input().split()
N=int(N)
Y=int(Y)
a=[]
for i in range(N+1):
for j in range(N-i+1):
if 1000*i+5000*j+10000*(N-i-j)==Y:
a.append(str(N-i-j))
a.append(str(j))
a.append(str(i))
if len(a)!=0:
break
if len(a)!=0:
print(a[0]+' '+a[1]+' '+a[2])
else:
pr... |
s766528030 | p03469 | u214344212 | 1521244700 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 344 | N,Y=input().split()
N=int(N)
Y=int(Y)
a=[]
for i in range(N+1):
for j in range(N-i+1):
if 1000*i+5000*j+10000*(N-i-j)==Y:
a.append(str(N-i-j))
a.append(str(j))
a.append(str(i))
if len(a)!=0:
break
if len(a)!=0:
print(a[0]+' '+a[1]+' '+a[2])
else:
pr... |
s005009480 | p03469 | u043877190 | 1521166430 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 10 | 2017/01/07 |
s226841302 | p03469 | u270681687 | 1520379368 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 225 | n, y = list(map(int, input().split()))
a = -1
b = -1
c = -1
for i in range(n+1):
for j in range(n+1-i):
if i*1000 + j*5000 + (n-i-j)*10000 == y:
a, b, c = i, j, n-i-j
break
print(c, b, a) |
s282415215 | p03469 | u958141542 | 1519927648 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 152 | n=int(input())
a=[]
for i in range(n):
b=0
b=int(input())
a.append(b)
a=sorted(a)
c=0
for j in range(n-1):
if((a[j])<(a[j+1])):
c+=1
print(c+1) |
s979192968 | p03469 | u806201407 | 1519372785 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 31 | s = input()
s[3] = '8'
print(s) |
s983622424 | p03469 | u435281580 | 1519347111 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 403 | def bills(count, value):
max10000 = value // 10000
for i in range(max10000 + 1):
max5000 = min(count - i, (value - i * 10000) // 5000)
for j in range(max5000 + 1):
k = (value - i * 10000 - j * 5000) // 1000
if i + j + k == count:
return i, j, k
re... |
s192017141 | p03469 | u435281580 | 1519346804 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 423 | import sys
def bills(count, value):
max10000 = value // 10000
for i in range(max10000 + 1):
max5000 = min(count - i, (value - i * 10000) // 5000)
for j in range(max5000 + 1):
k = (value - i * 10000 - j * 5000) // 1000
if i + j + k == count:
return i, j, k... |
s020096269 | p03469 | u599406741 | 1519203622 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 295 | import sys
N, Y = [int(s) for s in sys.stdin.readline().split(" ")]
Y2 = (Y/1000)-5*N
for z in range(0, 2001):
x = (5*z-Y2)/4
if x < 0:
continue
if int(x)-x==0:
x = int(x)
y = N-x-z
if y<0:
continue
print(z, y, x)
exit(0)
print("-1 -1 -1")
exit(0)
|
s218786578 | p03469 | u030726788 | 1518896191 | Python | Python (3.4.3) | py | Runtime Error | 22 | 3316 | 73 | a,b,c=map(int,input().split("/"))
print("2018/"+string(b)+"/"+string(c))
|
s714313458 | p03469 | u030726788 | 1518896102 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 59 | a,b,c=map(string,input().split("/"))
print("2018/"+b+"/"+c) |
s451853452 | p03469 | u023540496 | 1518820564 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 151 | N = int(input())
list_mochi = []
for i in range(N):
r = int(input())
if not(r in list_mochi):
list_mochi += [r]
print(len(list_mochi)) |
s464126263 | p03469 | u428487608 | 1518583680 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 251 | # -*- coding: utf-8 -*-
n,y = map(int,input().split())
for i in xrange(n+1):
for j in xrange(n-i+1):
k = n-i-j
if y == 10000*i + 5000*j + 1000*(k):
print('{0} {1} {2}'.format(i,j,k))
exit()
print('-1 -1 -1') |
s394414648 | p03469 | u428487608 | 1518583615 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 249 | # -*- coding: utf-8 -*-
n,y = map(int,input().split())
for i in range(n+1):
for j in range(n-i+1):
k = n-i-j
if y == 10000*i + 5000*j + 1000*(k):
print('{0} {1} {2}'.format(i,j,k))
exit()
print('-1 -1 -1') |
s554331937 | p03469 | u934099192 | 1517100633 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 175 | import numpy as np
import sys
flag = True
while (flag):
input_line = sys.stdin.readline()
if not input_line:
break
input_line[0:3] = '2018'
print(input_line) |
s190927774 | p03469 | u707500405 | 1517029309 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 47 | S = list(input())
S[3] = "8"
print("".join(S))
|
s568006911 | p03469 | u923285281 | 1516800176 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 248 | mochi_list = []
N = int(input())
for i in range(N):
mochi_list.append(int(input()))
last_mochi = 101
count = 0
for mochi in sorted(mochi_list, reverse=True):
if mochi < last_mochi:
count += 1
last_mochi = mochi
print(count)
|
s940141848 | p03469 | u480847874 | 1516700460 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3056 | 381 | N, Y = [int(i) for i in input().split()]
def f(x, y, z):
return 10000 * x + 5000 * y + 1000 * z
def b():
for x in range(N):
for y in range(N):
z = N - x - y
if z < 0:
continue
if f(x, y, z) == Y:
print('{0} {1} {2}'.format(x, y, z))... |
s349784248 | p03469 | u454481887 | 1516575975 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 59 | N=int(input())
print(len(set([input() for n in range(N)]))) |
s245874787 | p03469 | u454481887 | 1516575901 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 58 | N=int(input())
print(len(set([input() for n in range(N)])) |
s784652111 | p03469 | u763968347 | 1516572438 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 279 | #coding : utf-8
N,Y = [int(i) for i in input().split()]
flag = 0
for i in range(N+1):
for j in range(N+1-i):
if Y == 10000*i + 5000*j + 1000*(N-i-j) and flag == 0:
print(i,j,N-i-j)
flag = 1
break
if flag == 0:
print(-1,-1,-1) |
s094224332 | p03469 | u288948615 | 1516512653 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 61 | N = int(input())
print(len(set([input() for n in range(N)]))) |
s037969016 | p03469 | u288948615 | 1516512468 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 61 | N = int(input())
print(len(set([input() for n in range(N)]))) |
s396075057 | p03469 | u288948615 | 1516511779 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 45 | print(date = input().replace('2017', '2018')) |
s704826527 | p03469 | u061732150 | 1516506147 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 586 | N, Y = list(map(int, input().split()))
# Y = 10000*x + 5000*y + 1000*z
# N = x + y + z
flag = 0
x = 0
y = 0
z = 0
if Y % 1000 != 0:
flag = 1
elif Y > 10000*N:
flag = 1
elif Y % 10000 == 0:
x = Y//10000
else :
x = Y//10000
while True:
for y in range(N-x+1):
z = N-x-y
if Y == 1000... |
s943403591 | p03469 | u947748301 | 1516469068 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 184 | #枚数
paper = int(input())
#餅リスト
moti_list = []
li_uniq = []
#取得
for w in range(paper):
paper = int(input())
moti_list.append(paper)
print(len(moti_list)) |
s568505523 | p03469 | u947748301 | 1516414302 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 39 | num = input()
num[3] = "8"
print(num) |
s777956480 | p03469 | u062585962 | 1516402602 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 137 | N = int(input())
ipts = [input() for i in range(N)]
dic = {}
for i in ipts:
if(i not in dic):
dic[i] = True
print(len(dic))
|
s825602693 | p03469 | u297045966 | 1516356764 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 640 | N, H = input().strip().split(' ')
N, H =[int(N),int(H)]
L =list()
for i in range(0,N):
X, Y = input().strip().split(' ')
X, Y =[int(X), int(Y)]
L.append([X,Y])
L0 = list()
for i in range(0,N):
L0.append(L[i][0])
L1 = list()
for i in range(0,N):
L1.append(L[i][1])
M = max(L0)
L2 = list()
for i in... |
s674622071 | p03469 | u146714526 | 1516329877 | Python | Python (3.4.3) | py | Runtime Error | 149 | 12472 | 595 | import numpy as np
import itertools
import math
from collections import defaultdict as dd
def main():
N, Y = map(int, input().split())
a = int(Y/10000)
if a*10000 == Y:
print (a,0,0)
return
s = -1
for k in range(a+1):
b = N-k
if b >= 0:
for j in range... |
s823584551 | p03469 | u354407245 | 1516217223 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 41 | n = input()
print(input[:4] + "8" + [5:]) |
s630738083 | p03469 | u354407245 | 1516216967 | Python | Python (2.7.6) | py | Runtime Error | 12 | 2688 | 24 | n = input()
print n[0:4] |
s794575093 | p03469 | u590048048 | 1516213081 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 678 |
n, y = map(int, input().split())
y = y // 1000
print(n, y)
def find_by_for(v, n):
"""
the tuple by example
((0, 0, 0), (10, 5, 1), 100, 10)
"""
queue = []
queue.append(((0, 0, 0), (1, 5, 10), v, n))
while queue:
xs, fv, v, n = queue.pop()
if v == 0 and n == 0:
... |
s940883929 | p03469 | u590048048 | 1516212500 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 682 |
n, y = map(int, input().split())
y = y // 1000
print(n, y)
def find_by_for(v, n):
"""
the tuple by example
((0, 0, 0), (10, 5, 1), 100, 10)
"""
queue = []
queue.append(((0, 0, 0), (1, 5, 10), v, n))
while queue:
xs, fv, v, n = queue.pop()
if v == 0 and n == 0:
... |
s875182539 | p03469 | u737455052 | 1516180620 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 154 | n = int(input())
list = []
i = 0
for k in range(n):
d = int(input())
if d in list:
pass
else:
list.append(d)
print(len(list))
|
s491588788 | p03469 | u976966750 | 1516168058 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 102 | d =[]
for i in range(input()):
k= raw_input()
if k not in d:
d.append(k)
print len(d)
|
s163923305 | p03469 | u722670579 | 1516131616 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 443 | ny = input().split()
n = int(ny[0])
y = int(ny[1])
def solve(n,y):
Y = y/1000
p = int((Y - n) // 9)
for v in range(p+1):
if (Y - n - 9*v)%4 == 0:
b = int((Y - n - 9*v)/4)
c = int((Y - 10*v - 5*b))
if c*b < 0:
continue
else:
... |
s862972716 | p03469 | u311772410 | 1516080423 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3316 | 351 | # -*- coding: utf-8 -*-
N, Y = map(int, input().split())
a = 0
for x in range(N+1):
for y in range(N-x+1):
if (10000*x + 5000*y + 1000*(N-x-y)) == Y:
print(str(x)+" "+str(y)+" "+str(N-x-y))
a = 1
break
if a == 1:
break
if a == 1:
break
i... |
s637890250 | p03469 | u610950638 | 1516070877 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 574 | import math
inn = [int(x) for x in input().split()]
aa = []
bb = []
for i in range(inn[0]):
tmp = [int(x) for x in input().split()]
aa.append(tmp[0])
bb.append(tmp[1])
maxaa = max(aa)
ba = [x for x in bb if x > maxaa]
sumba = sum(ba)
lenba = len(ba)
if sumba == inn[1]:
print(lenba)
exit()
elif sum... |
s867858924 | p03469 | u155414221 | 1516055128 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 63 | S = int(input())
S_re = S.replace('2017', '2018')
print(S_re) |
s238159519 | p03469 | u212572201 | 1515955524 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 208 | count=0
N=int(input())
d=[]
d=[int(input()) for i in range(N)]
for k in range (N-1):
for j in range(k+1,N-1):
dd1=d[k]
dd2=d[j]
if dd1==dd2 :break
else:count+=1
print(count) |
s808977021 | p03469 | u212572201 | 1515955491 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 208 | count=0
N=int(input())
d=[]
d=[int(input()) for i in range(N)]
for k in range (N-1):
for j in range(k+1,N-1):
dd1=d[k]
dd2=d[j]
if dd1==dd2 :break
else:count+=1
print(count) |
s382620866 | p03469 | u212572201 | 1515953435 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 162 | count=0
N=input()
d=[]
d=[int(input()) for i in range(int(N))]
for k in range (int(N)-1):
dd1=d[k]
dd2=d[k+1]
if not dd1==dd2 :count+=1
print(count+1) |
s056280355 | p03469 | u997641430 | 1515900697 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 25 | S=input()
S[3]=8
print(S) |
s154253487 | p03469 | u209616713 | 1515824241 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 40 | S = raw_input()
print('2018/01' + S[-2] |
s443994979 | p03469 | u078814967 | 1515824214 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 49 | input = str(raw_input())
print("2018"+input[4:]) |
s348361625 | p03469 | u861966572 | 1515722079 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 23 | print("2018"+input[6:]) |
s812419281 | p03469 | u861966572 | 1515722039 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 30 | print(input[:3]+"8"+input[6:]) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.