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
s546670599
p03473
u390581401
1582292670
Python
Python (3.4.3)
py
Runtime Error
17
3064
52
M = input() M = int(M) print(48 - M) hibiki@hibiki-M
s508616903
p03473
u086503932
1581395957
Python
Python (3.4.3)
py
Runtime Error
17
2940
22
print(48-int(open(0)))
s242494605
p03473
u686713618
1581311516
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; cout << 48-a << endl; }
s581772428
p03473
u368796742
1580754325
Python
Python (3.4.3)
py
Runtime Error
17
2940
21
print(48-int(input())
s597693672
p03473
u687053495
1578424442
Python
Python (3.4.3)
py
Runtime Error
17
3064
373
N = int(input()) M = [list(map(int, input().split())) for _ in range(N-1)] for i in range(N-1): tm = 0 #時刻を表す for j in range(i, N-1): if tm < M[j][1]: #開通していない tm = M[j][1] elif tm % M[j][2] != 0: #発車していない tm += M[j][2] - (tm % M[j][2]) tm += M[j][0] pri...
s825689798
p03473
u799443198
1577878756
Python
Python (3.4.3)
py
Runtime Error
16
2940
24
print(24+24-int(input())
s950753220
p03473
u148551245
1577859675
Python
Python (3.4.3)
py
Runtime Error
16
2940
1032
fn main() { let m: isize = read(); let ans = 24 + 24 - m; println!("{}", ans); } // 以下関数 use std::io::*; use std::str::FromStr; pub fn read<T: FromStr>() -> T { let stdin = stdin(); let stdin = stdin.lock(); let token: String = stdin .bytes() .map(|c| c.expect("failed to read c...
s422792523
p03473
u148551245
1577859650
Python
Python (3.4.3)
py
Runtime Error
17
2940
1032
fn main() { let m: isize = read(); let ans = 24 + 24 - m; println!("{}", ans); } // 以下関数 use std::io::*; use std::str::FromStr; pub fn read<T: FromStr>() -> T { let stdin = stdin(); let stdin = stdin.lock(); let token: String = stdin .bytes() .map(|c| c.expect("failed to read c...
s544205784
p03473
u609814378
1576535559
Python
Python (3.4.3)
py
Runtime Error
17
2940
135
A,B = map(int, input().split()) S = input() if S[A] == "-" and S.count("-") == 1: ans = "Yes" else: ans = "No" print(ans)
s983839269
p03473
u226912938
1575922042
Python
Python (3.4.3)
py
Runtime Error
17
3064
484
n = int(input()) C, S, F = [], [], [] for _ in range(n-1): c, s, f = map(int, input().split()) C.append(c) S.append(s) F.append(f) for i in range(n-1): #i=0, 1つめの駅発を対象とする time = S[i] + C[i] for j in range(i+1, n-1): if time <= S[j]: time = S[j] + C[j] else: ...
s788647007
p03473
u239375815
1574934738
Python
Python (3.4.3)
py
Runtime Error
17
2940
31
m = input().split() print(48-m)
s488444508
p03473
u882013918
1574618935
Python
Python (3.4.3)
py
Runtime Error
17
2940
21
a=input() print(24+a)
s541108497
p03473
u798731634
1574364921
Python
Python (3.4.3)
py
Runtime Error
17
2940
25
m = input() print(24 - m)
s753725189
p03473
u923659712
1572973775
Python
Python (3.4.3)
py
Runtime Error
17
3060
321
q=int(input()) for i in range(q): a,b=map(int,input().split()) h=0 for j in range(a,b+1): for v in range(2,round(j**0.5)): if j%v==0: for k in range(2,round(((j+1)/2)**0.5)): if j%k==0: h+=1 else: pass else: pass print(h) ...
s634447322
p03473
u516554284
1570622459
Python
Python (3.4.3)
py
Runtime Error
17
2940
21
print(48-int(input())
s207547955
p03473
u971124021
1569794383
Python
Python (3.4.3)
py
Runtime Error
17
2940
39
int m = 0 cin << m cout >> 24-m >> endl
s512197098
p03473
u740047492
1569426372
Python
Python (3.4.3)
py
Runtime Error
18
2940
26
a = int(input) print(48-a)
s249675891
p03473
u761320129
1569074478
Python
Python (3.4.3)
py
Runtime Error
17
2940
23
n = input() print(48-n)
s380675987
p03473
u311399443
1567997444
Python
Python (3.4.3)
py
Runtime Error
17
2940
31
M=input(int()) print(24+(24-M))
s359989156
p03473
u311399443
1567997302
Python
Python (3.4.3)
py
Runtime Error
17
2940
21
n=input() print(48-n)
s870689375
p03473
u546853743
1567716742
Python
Python (3.4.3)
py
Runtime Error
17
2940
20
print(48-int(input))
s128041875
p03473
u907433146
1567658075
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
M = map(int, input().split()) X = 24 + (24-M) print(X)
s874143700
p03473
u296518383
1566664113
Python
Python (3.4.3)
py
Runtime Error
17
2940
21
print(48-int(input())
s396987844
p03473
u643714578
1566492290
Python
Python (3.4.3)
py
Runtime Error
17
2940
21
print(48-int(input())
s408969347
p03473
u923010184
1566168979
Python
Python (3.4.3)
py
Runtime Error
17
2940
19
print(48 - input())
s539439517
p03473
u923010184
1566168931
Python
Python (3.4.3)
py
Runtime Error
17
2940
42
M = map(int,input().split()) print(48 - M)
s836029831
p03473
u923010184
1566168906
Python
Python (3.4.3)
py
Runtime Error
17
2940
34
M = map(int,input()) print(48 - M)
s617468906
p03473
u923010184
1566168713
Python
Python (3.4.3)
py
Runtime Error
18
2940
40
M = map(int,input()) a = 48 - M print(a)
s945192997
p03473
u923010184
1566168621
Python
Python (3.4.3)
py
Runtime Error
17
2940
34
M = map(int,input()) print(48 - M)
s342318878
p03473
u268516119
1561232078
Python
Python (3.4.3)
py
Runtime Error
17
2940
21
print(48-int(input())
s551050494
p03473
u748311048
1560479252
Python
Python (3.4.3)
py
Runtime Error
17
2940
17
print(48-input())
s810962451
p03473
u353652911
1558496458
Python
Python (3.4.3)
py
Runtime Error
17
2940
21
print(48-int(input())
s321727627
p03473
u971267307
1557267564
Python
Python (3.4.3)
py
Runtime Error
17
2940
25
m = input() print(48 - m)
s682453888
p03473
u180439607
1557180604
Python
Python (3.4.3)
py
Runtime Error
17
2940
26
M =int(input()) prnt(48-M)
s227046880
p03473
u302221170
1556702430
Python
Python (3.4.3)
py
Runtime Error
17
2940
30
M = input() print(24 - M + 24)
s681014751
p03473
u545998622
1556599116
Python
Python (3.4.3)
py
Runtime Error
17
2940
21
k=input() print(48-k)
s860379886
p03473
u545998622
1556599080
Python
Python (3.4.3)
py
Runtime Error
17
2940
26
k=input(int()) print(48-k)
s504239218
p03473
u776871252
1555703423
Python
Python (3.4.3)
py
Runtime Error
17
2940
38
h = int(input()) print(24 + (24 - h)
s420567759
p03473
u914671452
1555543808
Python
Python (3.4.3)
py
Runtime Error
17
2940
49
#coding: utf-8 a = input() print((24 - a) + 24)
s415690370
p03473
u914671452
1555543684
Python
Python (3.4.3)
py
Runtime Error
18
2940
47
#coding: utf-8 a = input() print(24 - a + 24)
s941433894
p03473
u914671452
1555543029
Python
Python (3.4.3)
py
Runtime Error
17
2940
34
#coding: utf-8 print(24 - M + 24)
s809165951
p03473
u914671452
1555542988
Python
Python (3.4.3)
py
Runtime Error
17
2940
34
#coding: utf-8 print(23 - M + 24)
s503007669
p03473
u220345792
1555270468
Python
Python (3.4.3)
py
Runtime Error
17
2940
118
A, B = map(int, input().split()) S = input() if S[A] == "-" and S.count("-") == 1: print("Yes") else: print("No")
s840437274
p03473
u513900925
1554225865
Python
Python (3.4.3)
py
Runtime Error
18
2940
17
print(48-input())
s335850936
p03473
u732870425
1554173693
Python
Python (3.4.3)
py
Runtime Error
19
3188
277
a, b = map(int, input().split()) s = input() if s[a+1] == "-": s2 = s[:a+1] + s[a+2:] for i in range(a+b): if s2[i] not in ["0","1","2","3","4","5","6","7","8","9"]: print("No") break else: print("Yes") else: print("No")
s257970720
p03473
u020604402
1553914615
Python
Python (3.4.3)
py
Runtime Error
18
2940
32
I = int(intput()) print(24+24-I)
s582700701
p03473
u771532493
1553107978
Python
Python (3.4.3)
py
Runtime Error
17
2940
226
A,B=map(int,input().split()) S=input() ass=True for i in range(len(S)): if i==A: if S[i]!='-': ass=False break else: if S[i]=='-': ass=False break if ass: print('Yes') else: print('No')
s012454639
p03473
u771532493
1553107886
Python
Python (3.4.3)
py
Runtime Error
18
3060
226
A,B=map(int,input().split()) S=input() ass=True for i in range(len(S)): if i==A: if S[i]!='-': ass=False break else: if S[i]=='-': ass=False break if ass: print('Yes') else: print('No')
s628189035
p03473
u170324846
1552867027
Python
Python (3.4.3)
py
Runtime Error
18
2940
132
A, B = map(int, input().split()) S = input() if S[A] == "-" and (S[0:A]+S[A+1:B]).isdigit(): print("Yes") else: print("No")
s730680789
p03473
u350049649
1552480498
Python
Python (3.4.3)
py
Runtime Error
18
2940
24
n=int(input) print(48-n)
s087420167
p03473
u015229643
1551139088
Python
Python (3.4.3)
py
Runtime Error
18
2940
26
M=io.read("n") print(48-M)
s783327121
p03473
u449555432
1550663366
Python
Python (3.4.3)
py
Runtime Error
18
2940
21
print(48-int(input())
s880854819
p03473
u282228874
1550609786
Python
Python (3.4.3)
py
Runtime Error
17
2940
21
print(48-int(input())
s406971877
p03473
u543954314
1550330627
Python
Python (3.4.3)
py
Runtime Error
17
2940
23
print(48 - int(input())
s675092178
p03473
u114954806
1550187226
Python
Python (3.4.3)
py
Runtime Error
18
2940
134
a,b=map(int,input().split()) s=input() if s[:a].isdigit() and s[a:b]=='-' and s[b:].isdigit(): print("True") else: print("No")
s296310749
p03473
u802977614
1549638282
Python
Python (3.4.3)
py
Runtime Error
18
2940
21
print(48-int(input())
s172637157
p03473
u331036636
1549609767
Python
Python (3.4.3)
py
Runtime Error
17
2940
110
a, b = map(int,input().split()) s = input().split("-") print("Yes" if len(s[0])==a and len(s[1])==b else "No")
s176980684
p03473
u331036636
1549609657
Python
Python (3.4.3)
py
Runtime Error
18
2940
110
a, b = map(int,input().split()) s = input().split("-") print("Yes" if len(s[0])==a and len(s[1])==b else "No")
s455182280
p03473
u740284863
1549422184
Python
Python (3.4.3)
py
Runtime Error
18
3060
283
A,B = map(int,input().split()) S = str(input()) if len(S) > A+B+1: print("No1") exit() if len(S[A+1:]) != B: print("No2") exit() if S == S[0:A]+"-"+S[A+1:] and "-" not in S[0:A] and "-" not in S[A+1:] : print("Yes") else: print("No")
s150203660
p03473
u375616706
1548302531
Python
Python (3.4.3)
py
Runtime Error
64
7716
436
from itertools import accumulate N = 100000 prime = [True]*(N+1) prime[0] = prime[1] = False for i in range(N+1): if prime[i]: for j in range(2*i, N+1, i): prime[j] = False prime2 = [0] * (N+1) for i in range(N+1): if prime[i] and prime[(i+1)//2]: prime2[i] = 1 acc = list(accum...
s871020690
p03473
u785578220
1547249481
Python
Python (3.4.3)
py
Runtime Error
18
2940
21
print(48-int(input())
s427241320
p03473
u129978636
1542826109
Python
Python (3.4.3)
py
Runtime Error
17
2940
23
print(24 - int(input())
s229372046
p03473
u984870883
1541213999
Python
Python (3.4.3)
py
Runtime Error
17
2940
53
# -*- coding: utf-8 -*- a=input() s=48-a print(s)
s608031477
p03473
u984870883
1541213719
Python
Python (3.4.3)
py
Runtime Error
17
2940
52
# -*- coding: utf-8 -*- int a=input() print(48-a)
s881520849
p03473
u518556834
1539831667
Python
Python (3.4.3)
py
Runtime Error
18
3060
185
a,b = map(int,input().split()) s = input() if s[a] == "-" and len(s) == a+b+1: if str.isdecimal(s[:a]) == True and str.isdecimal(s[:a+1]) == True: print("Yes") else: print("No")
s141557964
p03473
u991083615
1537404772
Python
Python (3.4.3)
py
Runtime Error
230
6932
841
# !/usr/bin/env python # -*- coding: utf-8 -*- import math def generate_prime(p_max): prime = set([2]) for i in range(3, p_max + 1): for p in prime: if i % p == 0: break if p > int(math.sqrt(i)): prime.add(i) break return prim...
s252062385
p03473
u971256474
1536953371
Python
Python (3.4.3)
py
Runtime Error
16
2940
95
#include<bits/stdc++.h> using namespace std; int main(){ int M; cin>>M; cout<<48-M<<endl; }
s601562881
p03473
u932465688
1536809842
Python
Python (3.4.3)
py
Runtime Error
17
2940
28
M = int(input()) print(48-N)
s256917471
p03473
u636311816
1536019661
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
a,b=map(int,input().split());s=input();print(['No','Yes'][s[a]=='-'and s.count('-')>0])
s316585016
p03473
u124592621
1535924480
Python
Python (3.4.3)
py
Runtime Error
19
3064
375
n = int(input()) c = [0] * n s = [0] * n f = [0] * n for i in range(n - 1): c[i], s[i], f[i] = map(int, input().split()) for i in range(n - 1): total = 0 for j in range(i, n - 1): if total < s[j]: total = s[j] elif (total - s[j]) % f[j] == 0: total += f[j] - total % ...
s659256246
p03473
u889914341
1535773500
Python
Python (3.4.3)
py
Runtime Error
17
2940
23
print(24 - int(input())
s232181504
p03473
u419686324
1534988983
Python
Python (3.4.3)
py
Runtime Error
17
2940
23
print(48 - int(input())
s933654108
p03473
u828847847
1534271432
Python
Python (2.7.6)
py
Runtime Error
68
6896
705
import bisect def mark(s, x): for i in xrange(x + x, len(s), x): s[i] = False def sieve(n): s = [True] * n for x in xrange(2, int(n**0.5) + 1): if s[x]: mark(s, x) return [i for i in xrange(0,n) if s[i] and i > 1] primes = sieve(10**5) likes = [] for i in primes: if primes[bisect.bis...
s179721357
p03473
u983967747
1531264234
Python
Python (3.4.3)
py
Runtime Error
17
3064
734
import sys # 関数 solve は,もちろん,問題に応じて書き換える def solve( lst_a, lst_b,n): if n.count("-")==1: answer= "No" else: N,NN=n.split("-") if lst_a == len(N) and lst_b == len(NN): answer = "Yes" else: answer = "No" return answer # ここから下は,入力・出力形式が同じであれば,変えなくて良い. d...
s299259982
p03473
u796269639
1530745644
Python
Python (3.4.3)
py
Runtime Error
18
3188
149
#include <bits/stdc++.h> using namespace std; int main(int argc, char const* argv[]) { int m; cin >> m; cout << 48 - m << endl; return 0; }
s604597414
p03473
u941884460
1528951339
Python
PyPy3 (2.4.0)
py
Runtime Error
170
38640
908
import math import bisect Q=int(input()) querys = [list(map(int,input().split())) for x in range(Q)] def siever(x): nums = [a for a in range(2,x+1)] primes = [] while nums[0] <= int(math.sqrt(x))+1: tmp = nums.pop(0) primes.append(tmp) for num in nums: if num%tmp == 0: nums.remove(num)...
s648658123
p03473
u443569380
1528346743
Python
Python (3.4.3)
py
Runtime Error
18
3060
291
a,b = map(int,input().split()) S = input() def crazy(a,b,S): num = "0123456789" S = S[:A] + S[A+1:] if S[a] != "-": return False for i in S[:a]: if i not in num: return False return True if crazy(a,b,S): print("Yes") else: print("No")
s170022009
p03473
u552122040
1527955343
Python
Python (3.4.3)
py
Runtime Error
17
2940
80
date = input() date = list(date) date[3] = '8' date = ''.join(date) print(date)
s565896433
p03473
u350854794
1527649360
Python
Python (2.7.6)
py
Runtime Error
11
2568
35
d1 = 24 - M ans = d1 + 24 print ans
s238796844
p03473
u443569380
1524021753
Python
Python (3.4.3)
py
Runtime Error
20
3188
278
#coding: utf-8 import re A,B = map(int,input().split()) S = input() find_underscore = re.findall("\-",S[A]) find_num_a = re.findall("[0-9]",S[:A-1]) find_num_b = re.findall("[0-9]",S[A+1:]) if find_underscore and find_num_a and find_num_b: print("Yes") else: print("No")
s662623856
p03473
u591295155
1523908808
Python
Python (3.4.3)
py
Runtime Error
17
2940
21
print(int(input()-24)
s581215127
p03473
u457266110
1522901489
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
m = input() n = 48 - m print(n)
s434008697
p03473
u192903163
1522637315
Python
Python (3.4.3)
py
Runtime Error
17
2940
20
print(48-int(input))
s052250942
p03473
u729133443
1520839812
Python
Python (3.4.3)
py
Runtime Error
17
3068
20
print(48-int(input))
s436871362
p03473
u354916249
1520827456
Python
Python (3.4.3)
py
Runtime Error
17
2940
28
M=input(int()) print(M+24)
s469808024
p03473
u941884460
1520710866
Python
Python (3.4.3)
py
Runtime Error
20
3316
28
N = int(input()) print(48-M)
s728684315
p03473
u657913472
1520335713
Python
Python (3.4.3)
py
Runtime Error
17
2940
17
print(48-input())
s646841316
p03473
u806201407
1519373947
Python
Python (3.4.3)
py
Runtime Error
19
3188
135
import re a,b = input().split() ans = ["No", "Yes"] print( ans[ re.match( '[0-9]{' + a + '}-[0-9]{' + b + '}' , input()) != None ])
s061248388
p03473
u377301040
1517911423
Python
Python (3.4.3)
py
Runtime Error
17
2940
28
print(48-map(int, input()))
s504852076
p03473
u377301040
1517911358
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
M = map(int, input()) print 48-M
s937767466
p03473
u062560908
1516954734
Python
Python (2.7.6)
py
Runtime Error
12
2572
3
iko
s264054051
p03473
u390958150
1516580741
Python
Python (3.4.3)
py
Runtime Error
17
3064
363
n = int(input()) t = 0 st = 0 cn = [] sn = [] fn = [] for i in range(n-1): c,s,f = map(int,input().split()) cn.append(c) sn.append(s) fn.append(f) for j in range(n-1): t = 0 for i in range(j,n-1): st = sn[i] if t <= sn[i]: t = sn[i] if t%fn[i] != 0: t += fn[i]-t%fn[...
s362383304
p03473
u454481887
1516244092
Python
Python (3.4.3)
py
Runtime Error
17
2940
20
print((24 = M) + 24)
s525912380
p03473
u861966572
1515719894
Python
Python (3.4.3)
py
Runtime Error
18
2940
16
print(M-input())
s632038849
p03473
u861966572
1515719841
Python
Python (3.4.3)
py
Runtime Error
18
2940
25
M=input() M=48-M print(M)
s302702634
p03473
u861966572
1515719744
Python
Python (3.4.3)
py
Runtime Error
17
2940
21
N=input() print(48-N)
s163701462
p03473
u861966572
1515719703
Python
Python (3.4.3)
py
Runtime Error
18
2940
25
N=input() M=48-N print(M)
s666310664
p03473
u088728562
1515578180
Python
Python (3.4.3)
py
Runtime Error
18
3064
372
def isprime(z): if z < 2:return False if z == 2:return True i = 2 while i*i <= z: if z % i == 0: return False i+=1 return True n = int(input()) for i in range(n): l, r = map(int, input().split()) c = 0 for j in range(l, r+1): if isprime(j) and isprime(...
s525371198
p03473
u088728562
1515578159
Python
PyPy3 (2.4.0)
py
Runtime Error
171
38512
372
def isprime(z): if z < 2:return False if z == 2:return True i = 2 while i*i <= z: if z % i == 0: return False i+=1 return True n = int(input()) for i in range(n): l, r = map(int, input().split()) c = 0 for j in range(l, r+1): if isprime(j) and isprime(...
s049711380
p03473
u881621300
1515475648
Python
Python (3.4.3)
py
Runtime Error
17
2940
560
import math def isPrime(num): if num < 2: return False else: rootNum = math.floor(math.sqrt(num)) for i in range(2,rootNum+1): if num % i == 0: return False return True def solve(): lst = [] count = int(input()) for i in range(count): ...