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
s494732543
p03605
u149580849
1508830849
Python
Python (3.4.3)
py
Runtime Error
17
2940
86
a = int(input()) if (a//10 == 9 || a%10 == 9): print("yes") else: print("No")
s068904126
p03605
u149580849
1508830638
Python
Python (3.4.3)
py
Runtime Error
18
2940
85
a = int(input()) if (a/10 == 9 || a%10 == 9): print("yes") else: print("No")
s762516811
p03605
u667024514
1507467804
Python
Python (3.4.3)
py
Runtime Error
19
2940
82
a = int(input()) b = a[0] c = a[1] if b==9 or c==9: print("Yes") else: print("No")
s587114024
p03605
u234154017
1507015971
Python
Python (3.4.3)
py
Runtime Error
17
2940
136
N = int(input()) if int(N/10)==9: print("Yes") elif int(((N-9)%10)) == 0: print("Yes") else: print("No")
s863707816
p03605
u937164028
1506490750
Python
Python (3.4.3)
py
Runtime Error
22
3316
199
if __name__ == '__main__': i = 0 N = int(input()) if N-90>0: i = 1 x = (N-9)/10 if x == int(x): i = 1 if i == 1: print(Yes) else: print(No)
s597584173
p03605
u937164028
1506490698
Python
Python (3.4.3)
py
Runtime Error
20
3060
189
if __name__ == '__main__': N = int(input()) if N-90>0: i = 1 x = (N-9)/10 if x == int(x): i = 1 if i == 1: print(Yes) else: print(No)
s506104499
p03605
u937164028
1506490549
Python
Python (3.4.3)
py
Runtime Error
19
2940
181
if __name__ == '__main__': N = int(input()) if N-90>0: print(Yes) return x = (N-9)/10 if x == int(x): print(Yes) return print(No)
s130435462
p03605
u979554218
1506006429
Python
Python (3.4.3)
py
Runtime Error
17
2940
91
if [1 for c in input() if c == '9']: print('Yes') else: print('No')
s814018957
p03605
u270350963
1505969589
Python
Python (3.4.3)
py
Runtime Error
16
2940
75
a = input() a.find("9") if a !== -1: print("Yes") else: print("No")
s158384279
p03605
u045939752
1505834768
Python
Python (3.4.3)
py
Runtime Error
18
3828
160
c=[0]*100010 N=int(input()) for _ in range(N): a,b=map(int,input().split()) c[a] += 1 c[b+1] -= 1 for i in range(len(c)-1): c[i+1] += c[i] print(sum(c))
s166035381
p03605
u306773664
1505787643
Python
Python (3.4.3)
py
Runtime Error
18
2940
228
#ๅฎŸ่กŒๆ™‚้–“ใ‚’็Ÿญใ import sys data = set() N = int(sys.stdin.readline()) for i in range(N): num = int(sys.stdin.readline()) if num in data: data.remove(num) else: data.add(num) print(len(data))
s119203261
p03605
u306773664
1505787555
Python
Python (3.4.3)
py
Runtime Error
17
2940
439
#coding: utf_8 #ๅฎŸ่กŒๆ™‚้–“ใŒ้•ทใ„ """N = int(input()) data = [] for i in range(N): num = int(input()) if num in data: data.remove(num) else: data.append(num) print(len(data))""" #ๅฎŸ่กŒๆ™‚้–“ใ‚’็Ÿญใ import sys data = set() N = int(sys.stdin.readline()) for i in range(N): num = int(sys.stdin.readline()) ...
s047072716
p03605
u301823349
1505678209
Python
Python (3.4.3)
py
Runtime Error
17
3060
194
paper = [0,0,0,0,0,0,0,0,0,0] N = int(input()) for _ in range(N): number = int(input()) paper[number] += 1 sum = 0 for x in range(10) if paper[x] % 2 == 1 sum += 1 print(sum)
s014303954
p03605
u301823349
1505677109
Python
Python (3.4.3)
py
Runtime Error
16
2940
91
N = int(input.()) if N+10 >= 100 or (N+1) % 10 == 0: print("Yes") else: print("No")
s432465485
p03605
u306938754
1505668939
Python
Python (2.7.6)
py
Runtime Error
11
2568
156
N = raw_input() N = int(N) a = {} for i in range(N): s_input = raw_input() if s_input in a: del a[s_input] else: a[s_input] = s_input print(len(a))
s141347260
p03605
u306938754
1505668754
Python
Python (2.7.6)
py
Runtime Error
10
2568
175
N = raw_input() N = int(N) a = {} for i in range(N): s_input = raw_input() s_input = int(s_input) if s_input in a: del a[s_input] else: a[s_input] += 1 print(len(a))
s470612667
p03605
u306938754
1505667646
Python
Python (3.4.3)
py
Runtime Error
17
2940
176
N = raw_input() N = int(N) a = [] for i in range(N): s_input = input() s_input = int(s_input) if s_input in a: a.remove(s_input) else: a.append(s_input) print(len(a))
s825437959
p03605
u306938754
1505667546
Python
Python (3.4.3)
py
Runtime Error
17
2940
176
N = input() N = int(N) a = [] for i in range(N): s_input = raw_input() s_input = int(s_input) if s_input in a: a.remove(s_input) else: a.append(s_input) print(len(a))
s617374147
p03605
u306938754
1505667495
Python
Python (2.7.6)
py
Runtime Error
10
2568
181
N = raw_input() N = int(N) a = [] for i in range(N): s_input = raw_input() s_input = long(s_input) if s_input in a: a.remove(s_input) else: a.append(s_input) print(len(a))
s473434626
p03605
u306938754
1505659682
Python
Python (2.7.6)
py
Runtime Error
10
2568
190
N = raw_input() N = int(N) a = [] for i in range(N): s_input = raw_input() s_input = int(s_input) if s_input in a: a.remove(s_input) else: a.append(s_input) a.sort() print(len(a))
s174745352
p03605
u063896676
1505606946
Python
Python (3.4.3)
py
Runtime Error
17
2940
112
n = int(input()) fst = n % 10 snd = n / 10 if (fst == 9) || (snd == 9): print("Yes") elif : print("No")
s534758108
p03605
u965230804
1505599305
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
p = input() if p % 10 == 9: print ("Yes") else: print("No")
s436891450
p03605
u193690465
1505542432
Python
Python (3.4.3)
py
Runtime Error
17
2940
83
str=list(input()) if str[0]=='9' || str[1]=='9': print('yes') else: print('no')
s653682489
p03605
u467465187
1505276497
Python
Python (3.4.3)
py
Runtime Error
17
2940
175
N = int(input()) a = [int(input()) for i in range(N)] n = N for i in range(N-1): j = i + 1 while j <= N-1: if a[i] != a[j]: j += 1 else: n -= 2 break print(n)
s670489413
p03605
u467465187
1505251350
Python
Python (3.4.3)
py
Runtime Error
18
2940
94
a = int(input()) b = a // 10 c = a % 10 if b == 9 or c == 9 print("yes") else print("no")
s131329547
p03605
u467465187
1505251200
Python
Python (3.4.3)
py
Runtime Error
17
2940
94
a = int(input()) b = a // 10 c= a % 10 if b == 9 or c == 9 print("Yes") else print("No")
s410049077
p03605
u178881398
1505189465
Python
Python (2.7.6)
py
Runtime Error
254
16100
184
import numpy as np N=input() x=[] dict={} for i in range(N): a=raw_input() if a in dict: dict[a]+=1 else: dict[a]=1 print np.sum(np.array(dict.values())%2)
s698847221
p03605
u559996513
1505166243
Python
Python (3.4.3)
py
Runtime Error
18
3064
650
from itertools import permutations N, M, R = map(int, input().split()) r = map(int, input().split()) INF = float("inf") d = [[INF] * (N + 1) for _ in range(N + 1)] for n in range(1, N + 1): d[n][n] = 0 for _ in range(M): a, b, c = map(int, input().split()) d[a][b] = c d[b][a] = c for k in range(1, ...
s865411388
p03605
u559996513
1505164364
Python
Python (3.4.3)
py
Runtime Error
18
3064
693
from itertools import permutations N,M,R = map(int, input().split()) r = list(map(int,input().split())) dis = [[float('inf')]*(N+1) for _ in range(N+1)] for i in range(1, N+1): dis[i][i] = 0 for i in range(M): Ai, Bi, Ci = map(int, input().split()) if dis[Ai][Bi] > Ci: dis[Ai][Bi] = Ci dis[...
s274650266
p03605
u559996513
1505164138
Python
Python (3.4.3)
py
Runtime Error
18
3064
690
from itertools import permutations N,M,R = map(int, input().split()) r = list(map(int,input().split())) dis = [[float('inf')]*(N+1) for _ in range(N+1)] for i in range(N+1): dis[i][i] = 0 for i in range(M): Ai, Bi, Ci = map(int, input().split()) if dis[Ai][Bi] > Ci: dis[Ai][Bi] = Ci dis[Bi]...
s724477799
p03605
u679250765
1505158745
Python
Python (3.4.3)
py
Runtime Error
17
2940
157
n = int(input()) list = [] for i in range(n): a = bay(input()) if a in list: list.remove(a) else: list.append(a) print(len(list))
s780408620
p03605
u679250765
1505157320
Python
Python (3.4.3)
py
Runtime Error
18
2940
157
n = int(input()) list = [] for i in range(n): a = str(input()) if a in list: list.remove(a) else: list.append(a) print(len(list))
s982533902
p03605
u679250765
1505157279
Python
Python (3.4.3)
py
Runtime Error
17
2940
157
n = int(input()) list = [] for i in range(n): a = str(input()) if a in list: list.remove(a) else: list.append(a) print(len(list))
s285024907
p03605
u231552419
1505138934
Python
Python (3.4.3)
py
Runtime Error
17
2940
197
N = int(input()) ans = 0 nums = set([]) for _ in range(N): A = int(input()) if A in nums: ans -= 1 nums.discard(A) else: ans += 1 nums.add(A) print(ans)
s440130167
p03605
u074201886
1505100100
Python
Python (3.4.3)
py
Runtime Error
17
3064
418
n,m,r=map(int,input().split()) r=list(map(int,input().split())) cost=[[99999999 if i!=j else 0 for j in range(n)] for i in range(n)] for _ in range(m): a,b,c=map(int,input().split()) cost[a-1][b-1]=cost[b-1][a-1]=c for k in range(n): for i in range(n): for j in range(n): cost[i][j]=min(c...
s204378521
p03605
u835709901
1505082231
Python
Python (3.4.3)
py
Runtime Error
18
3064
883
import sys from itertools import permutations def read_int_list(): return list(map(int, input().split())) def main(): def floyd_warshall(): for k in range(n): for i in range(n): for j in range(n): dd = d[i][k] + d[k][j] if dd < d[...
s921471519
p03605
u165538494
1505047329
Python
Python (3.4.3)
py
Runtime Error
17
2940
38
print("Yes" if 9 in input() else "No")
s283012215
p03605
u353917577
1505032694
Python
Python (3.4.3)
py
Runtime Error
414
24656
263
from scipy.sparse import* (N,M,R),r,*t=[map(int,i.split())for i in __import__("sys").stdin] a,b,c=zip(*t) l=csgraph.dijkstra(csr_matrix((c,(a,b)),[N+1]*2),0) print(min(sum(int(l[i][j])for i,j in zip(a[:-1],a[1:]))for a in __import__("itertools").permutations(r)))
s135483126
p03605
u433500054
1505031919
Python
PyPy3 (2.4.0)
py
Runtime Error
161
38256
145
n = int(input()) a = [] ans = 0 for i in range(n): a.append(int(input())) set_a = set(a) for i in set_a: ans += a.count(i) % 2 print(ans)
s557891740
p03605
u353917577
1505027806
Python
PyPy3 (2.4.0)
py
Runtime Error
184
40048
522
import itertools N,M,R = map(int, input().split()) r = map(int, input().split()) l = [[1e9 for i in range(N+1)] for i in range(N+1)] for i in range(M): a,b,c = map(int, input().split()) l[a][b] = l[b][a] = c for k in range(1,N+1): for i in range(1,N+1): for j in range(1,N+1): t = l[i]...
s988463103
p03605
u353917577
1505023180
Python
Python (3.4.3)
py
Runtime Error
17
2940
54
s=input() print("Yes" if s/10==9 or s%10==9 else "No")
s639274351
p03605
u280984565
1505015500
Python
PyPy3 (2.4.0)
py
Runtime Error
169
38384
1592
from collections import Counter def read_line(*types): return [f(a) for a, f in zip(input().split(), types)] n, m, r = read_line(int, int, int) rs = [int(r) for r in input().split()] cities = Counter() routes = {} costs = {} for _ in range(m): a, b, c = read_line(int, int, int) cities[a] = 1 cities[b]...
s585318121
p03605
u772180901
1505011423
Python
Python (3.4.3)
py
Runtime Error
17
2940
157
n = int(input()) arr = {} for i in range(n): num = int(input()) if num in arr: arr.remove(num) else: arr.add(num) print(len(arr))
s329472404
p03605
u865646085
1505011075
Python
Python (3.4.3)
py
Runtime Error
17
2940
169
list = [] n = int(input()) for i in xrange(n): add = int(input()) if(add in list): list.remove(add) else: list.append(add) print(len(list))
s889017011
p03605
u720834720
1505010339
Python
Python (3.4.3)
py
Runtime Error
17
2940
46
A=int(input()) if 9 in A print(Yes): else(No):
s459993758
p03605
u791838908
1505010100
Python
Python (3.4.3)
py
Runtime Error
17
3056
215
n = int(input()) A = [int(input()) for i in range(n)] b = list() lenB = 0 for a in A: b.append(a) lenB += 1 if len(set(b)) != lenB: b.pop(-1) b.remove(a) lenB -= 2 print(len(b))
s118760152
p03605
u922524075
1505009825
Python
Python (3.4.3)
py
Runtime Error
18
3828
280
list = [[]] * 100000 total = 0 x = input() for i in range(0, int(x)): y = input() if int(y) in list[int(y) % 100000]: list[int(y) % 100000].remove(int(y)) total -= 1 else: list[int(y) % 100000].append(int(y)) total += 1 print(total)
s613839386
p03605
u922524075
1505009735
Python
Python (3.4.3)
py
Runtime Error
19
3828
280
list = [[]] * 100000 total = 0 x = input() for i in range(0, int(x)): y = input() if int(y) in list[int(y) % 100000]: list[int(y) % 100000].remove(int(y)) total -= 1 else: list[int(y) % 100000].append(int(y)) total += 1 print(total)
s897366046
p03605
u539953365
1505009289
Python
PyPy3 (2.4.0)
py
Runtime Error
172
38640
1306
from itertools import permutations N, M, R = [int(i) for i in input().split()] r = [int(i) - 1 for i in input().split()] V = N # Define infinity as the large enough value. This value will be # used for vertices not connected to each other INF = 10000000 graph = [[INF for i in range(N)] for j in range(N)] for m in ...
s501930278
p03605
u791838908
1505009257
Python
Python (3.4.3)
py
Runtime Error
17
3060
193
n = int(input()) A = [int(input()) for i in range(n)] counter = [0]*max(A) cnt = 0 for a in A: counter[a-1] += 1 for c in counter: if c % 2 == 0 & c != 0: cnt += 1 print(cnt)
s895002918
p03605
u720834720
1505008677
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
N=int(input()) for A_i in range (N): x=int(input()) x=list(set(x)) print len(x)
s243886927
p03605
u498631675
1505008563
Python
Python (2.7.6)
py
Runtime Error
10
2568
162
#-*- coding: utf-8-*- import sys argvs = sys.argv N = int(argvs[1]) if 89< N <100 or N in (i*10+9 for i in range(1, 9, 1)): print 'Yes' else: print 'No'
s567724660
p03605
u909119242
1505008561
Python
Python (2.7.6)
py
Runtime Error
10
2568
103
i = raw_input("Enter number") while(i > 0): j = i % 10 if j == 9: print 'Yes' i /= 10 print 'No'
s180779123
p03605
u791838908
1505008533
Python
Python (3.4.3)
py
Runtime Error
17
3060
165
n = int(input()) A = [int(input()) for i in range(n)] t = set() B = [x for x in A if x in t or t.add(x)] C = [item for item in A if item not in B] print(len(C))
s609719098
p03605
u909119242
1505008462
Python
Python (2.7.6)
py
Runtime Error
10
2568
110
i = raw_input("Enter number") while(i > 0): j = i % 10; if j == 9: print 'Yes' i /= 10; print 'No'
s125688213
p03605
u909119242
1505008315
Python
Python (2.7.6)
py
Runtime Error
10
2568
105
i = raw_input("Enter number") while(i > 0): j = i % 10; if j == 9: print 'Yes' i /= 10; print 'No'
s675886769
p03605
u720834720
1505008246
Python
Python (3.4.3)
py
Runtime Error
16
2940
77
N=int(input()) for A in range (N): a=int(input()) a=list(set(x)) print len(a)
s292967685
p03605
u791838908
1505008129
Python
Python (3.4.3)
py
Runtime Error
17
3056
123
n = int(input()) A = [int(input()) for i in range(n)] B = set(A) C = [item for item in A if item not in B] print(len(C))
s585675028
p03605
u909119242
1505008028
Python
Python (2.7.6)
py
Runtime Error
11
2568
105
i = raw_input("Enter number") while(i >= 0): j = i % 10; if j == 9: print 'Yes' i /= 10; print 'No'
s295717443
p03605
u791838908
1505007676
Python
Python (3.4.3)
py
Runtime Error
17
3060
186
n = int(input()) A = [int(input()) for i in range(n)] counter = [0] * 1000000000 cnt = 0 for a in A: counter[a-1] += 1 for c in counter: if c == 1: cnt += 1 print(cnt)
s466420674
p03605
u872551768
1505007650
Python
Python (3.4.3)
py
Runtime Error
17
2940
157
num = input() num = str(num) isthere = False for i in range(0, 2): if num[i] == '9': isthere = True if isthere: print('Yes') else: print('No') input()
s490016566
p03605
u791838908
1505007570
Python
Python (3.4.3)
py
Runtime Error
18
3060
175
n = int(input()) A = [int(input()) for i in range(n)] counter = [0]*n cnt = 0 for a in A: counter[a-1] += 1 for c in counter: if c == 1: cnt += 1 print(cnt)
s641603119
p03605
u720834720
1505007132
Python
Python (3.4.3)
py
Runtime Error
17
2940
52
N=int(input()) if 9 in N: print(Yes) else: print(No)
s013545598
p03605
u318073603
1505006994
Python
Python (3.4.3)
py
Runtime Error
17
3064
220
N = int(input()) list = [] for i in range(N): number = int(input()) if number in list: list.remove(number) #print(list) else: list.append(number) #print(list) print(len(list))
s551895818
p03605
u943004959
1505006906
Python
Python (3.4.3)
py
Runtime Error
17
2940
95
n = list(int(input())) for i in n: if i == 9: print("Yes") break print("No")
s118441822
p03605
u720834720
1505006827
Python
Python (3.4.3)
py
Runtime Error
17
2940
63
N=int(input()) if N.count(9)==1: print(Yes) else: print(No)
s485784604
p03605
u498631675
1505006752
Python
Python (2.7.6)
py
Runtime Error
10
2568
225
#-*- coding: utf-8-*- N = int(raw=input()) #if 89< N <100 or N in (i*10+9 for i in range(1, 9, 1)): if 89< N <100 or N==19 or N==29 or N==39 or N==49 or N==59 or N==69 or N==79 or N==89: print 'Yes' else: print 'No'
s238947453
p03605
u498631675
1505006565
Python
Python (2.7.6)
py
Runtime Error
10
2568
165
#-*- coding: utf-8-*- import sys argv = sys.argv N = argv[1] if 89< N <100 or N in (i*10+9 for i in range(1, 9, 1)): print 'Yes' else: print 'No' sys.exit()
s673371618
p03605
u791838908
1505006542
Python
Python (3.4.3)
py
Runtime Error
17
2940
90
N = input() result = "NO" if i in N: if i == '9': result = "YES" print(result)
s438507429
p03605
u498631675
1505006440
Python
Python (2.7.6)
py
Runtime Error
10
2568
186
#-*- coding: utf-8-*- import sys argv = sys.argv N = argv[1] if 89< N <100 or N==19 or N==29 or N==39 or N==49 or N==59 or N==69 or N==79 or N==89: print 'Yes' else: print 'No'
s288039756
p03605
u791838908
1505006332
Python
Python (3.4.3)
py
Runtime Error
18
2940
114
N = [int(i) for i in input().split()] result = "NO" if i in N: if i == 9: result = "YES" print(result)
s408304865
p03605
u498631675
1505006327
Python
Python (2.7.6)
py
Runtime Error
11
2568
154
#-*- coding: utf-8-*- import sys argv = sys.argv N = argv[1] if 89< N <100 or N in (i*10+9 for i in range(1, 9, 1)): print 'Yes' else: print 'No'
s522213622
p03605
u525117558
1505006098
Python
Python (3.4.3)
py
Runtime Error
17
2940
61
n=int(input().split()) if((n[0]+n[1])%9==0): Yes else: No
s061225934
p03605
u906129425
1505005747
Python
Python (3.4.3)
py
Runtime Error
18
2940
111
n = int(input()) ans = 0 for _ in range(n): l, r = map(int, input().split()) ans += r - l + 1 print(ans)
s003012038
p03605
u070108126
1505005547
Python
Python (3.4.3)
py
Runtime Error
17
2940
105
inp = input() in1 = inp // 10 in2 = inp % 10 if in1 == 9 or in2 == 9: print('YES') else: print('NO')
s441528262
p03605
u070108126
1505005315
Python
Python (3.4.3)
py
Runtime Error
16
2940
78
inp = input() inp = str(in) if '9' in inp: print('YES') else: print('NO')
s961189644
p03605
u451017206
1505005286
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
N = input() if N.index('9') != -1: print('Yes') else: print('No')
s454864804
p03605
u119714109
1505005238
Python
Python (3.4.3)
py
Runtime Error
17
2940
175
import sys stdin = sys.stdin ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline() print("Yes" if "9" in ns else "No")
s204785172
p03606
u666550725
1599828617
Python
PyPy3 (7.3.0)
py
Runtime Error
101
74848
110
N = int(input()) ans = 0 for i in range(N): l, r = map(int. input().split()) ans += (r - l + 1) print(ans)
s055978018
p03606
u699296734
1599429558
Python
Python (3.8.2)
py
Runtime Error
53
9660
271
n = int(input()) seat = [0] * 10 ** 5 for i in range(n): l, r = map(int, input().split()) seat[l - 1] += 1 seat[r] -= 1 for i in range(1, 10 ** 5): seat[i] += seat[i - 1] res = 0 for i in range(10 ** 5): if seat[i] == 1: res += 1 print(res)
s137078527
p03606
u632428284
1599403663
Python
Python (3.8.2)
py
Runtime Error
27
8952
207
#include <bits/stdc++.h> using namespace std; int main() { int N ; cin >> N ; int l ,r ; int p = 0; for (int i = 0; i < N; i++ ){ cin >> l >> r; p += r - l + 1 ; } cout << p << endl; }
s518801121
p03606
u546853743
1599400115
Python
Python (3.8.2)
py
Runtime Error
23
9012
113
n=int(input()) kei=0 for i in range(n): l,r=map(int,input().split()) kei += sum(r)-sum(l) kei += n print(kei)
s330913477
p03606
u546853743
1599400079
Python
Python (3.8.2)
py
Runtime Error
28
8996
117
n=int(input()) kei=0 for i in range(n): l,r=map(int,input().split()) kei += sum(r)-sum(l) kei += n print(kei)
s571788153
p03606
u546853743
1599399891
Python
Python (3.8.2)
py
Runtime Error
21
9112
112
n=int(input()) l,r=list(map(int,input().split())) kei=0 for i in range(n): kei += (r[i]-l[i]) + 1 print(kei)
s236373864
p03606
u440478998
1599210308
Python
Python (3.8.2)
py
Runtime Error
24
8940
145
l = [0] * n r = [0] * n for i in range(n): l[i],r[i] = map(int, input().split()) res = 0 for i in range(n): res += r[i]-l[i]+1 print(res)
s408933128
p03606
u244836567
1599004844
Python
Python (3.8.2)
py
Runtime Error
27
8804
101
a=int(input()) b=[int(input()) for i range(a)] c=0 for i range(a): c=c+(b[i][1]-b[i][2]) print(c+a)
s814629622
p03606
u825429469
1597167243
Python
Python (3.8.2)
py
Runtime Error
24
9012
9
2 6 8 3 3
s604310226
p03606
u344030307
1597067557
Python
Python (3.8.2)
py
Runtime Error
26
8984
101
n = int(input()) p = 0 for in in range(n): l, r = map(int, input().split()) p += r-l+1 print(n)
s506376657
p03606
u786020649
1596054321
Python
Python (3.8.2)
py
Runtime Error
24
9068
99
N=int(input()) lr=[list(map(int,input())) for _ in range(N)] print(sum([e[1]-e[0]+1 for e in lr]))
s812077916
p03606
u786020649
1596054300
Python
Python (3.8.2)
py
Runtime Error
26
8892
97
N=int(input()) lr=[list(map(int,input())) for _ in range(N)] print(sum([e[1]-e[0]+1 for e in lr])
s279047296
p03606
u289288647
1594689758
Python
Python (3.8.2)
py
Runtime Error
38
9636
146
n = int(input()) c = [0]*10**5 for i in range(n): a, b = map(int, input().split()) for j in range(a, b+1): c[j] = 1 print(sum(c))
s431811756
p03606
u168416324
1594222340
Python
Python (3.8.2)
py
Runtime Error
24
9200
185
n=int(input()) out=0 for i in range(n): a,m=map(int,input().split()) out+=m-a+1 print(out) n=int(input()) out=0 for i in (n): a,m=map(int,input().split()) out+=m-a+1 print(out)
s829622875
p03606
u168416324
1594222275
Python
Python (3.8.2)
py
Runtime Error
26
9044
90
n=int(input()) out=0 for i in (n): a,m=map(int,input().split()) out+=m-a+1 print(out)
s168270919
p03606
u168416324
1594222236
Python
Python (3.8.2)
py
Runtime Error
28
9024
89
n=int(input()) out=0 for i in (n): n,m=map(int,input().split()) out+=m-n+1 print(out)
s762470246
p03606
u626228246
1593123715
Python
Python (3.8.2)
py
Runtime Error
26
9488
129
n = int(input()) lr = [map(int,input().split()) for l in range(n)] ans = 0 for i in lr: ans += lr[i][1] - lr[i][0]+1 print(ans)
s028558284
p03606
u115877451
1592929726
Python
Python (3.8.2)
py
Runtime Error
25
9256
143
a=int(input()) b=[] for _ in range(a): b.append(list(map(int,input().split()))) ans=0 for i in range(a): ans+=n[i][1]-n[i][0]+1 print(ans)
s185834267
p03606
u706414019
1592775987
Python
Python (3.8.2)
py
Runtime Error
38
9616
159
N = int(input()) seat = [0]*100000 for i in range(N): a,b = map(int,list(input().split())) for j in range(a,b+1): seat[j] = 1 print(sum(seat))
s134797957
p03606
u706414019
1592775854
Python
Python (3.8.2)
py
Runtime Error
33
9524
157
N = int(input()) seat = [0]*100000 for i in range(N): li,ri = map(int,input().split()) for j in range(li,ri+1): seat[j] = 1 print(sum(seat))
s513392774
p03606
u146346223
1592474798
Python
Python (3.4.3)
py
Runtime Error
18
3060
78
for _ in range(int(input())): print(sum(1-eval(input().replace(" ","-"))))
s946641950
p03606
u750651325
1592399958
Python
Python (3.4.3)
py
Runtime Error
17
3060
129
N = int(input()) a = [] for i in range(N): a,b = map(int,input().split()) sa = b-a+1 a.append(sa) print(sum(a))