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
s075748017
p03719
u114954806
1529018462
Python
Python (3.4.3)
py
Runtime Error
17
2940
180
N,M=map(int,input().split()) c = [map(int,input().split()) for i in range(M)] result = [0]*N for a,b in c: result[a-1] += 1 result[b-1] += 1 for i in result: print(i)
s631259712
p03719
u064408584
1528598157
Python
Python (3.4.3)
py
Runtime Error
18
3060
171
n,k=map(int, input().split()) a=[list(map(int, input().split())) for i in range(n)] a.sort() #print(a) b=[] for i,j in a: b=b+[i]*j if len(b)>k:break print(b[k-1])
s496208540
p03719
u102126195
1525712749
Python
Python (3.4.3)
py
Runtime Error
17
2940
102
A, B, C = map(int, iinput().split()) if A <= C and B >= C: print("Yes") else: print("No")
s421826841
p03719
u327248573
1525379977
Python
Python (3.4.3)
py
Runtime Error
17
2940
83
A,B,C = map(int. input().split(' ')) if A <= C <= B: print('Yes') else: print('No')
s116599903
p03719
u628262476
1522820806
Python
Python (3.4.3)
py
Runtime Error
17
2940
66
p=map(int,input().split());print('Yes'if p[0]<=p[2]<=p[1]else'No')
s122804311
p03719
u628262476
1522820785
Python
Python (3.4.3)
py
Runtime Error
17
2940
65
p=map(int,input().split());print('Yes'if p[0<=p[2]<=p[1]else'No')
s747158992
p03719
u729707098
1521667870
Python
Python (3.4.3)
py
Runtime Error
18
3188
173
n,k = (int(i) for i in input().split()) x = [[int(i) for i in input().split()] for i in range(n)] x.sort() num = 0 for i in x: num += i[1] if num>=k: print(i[0]) break
s334016520
p03719
u319612498
1519018268
Python
Python (3.4.3)
py
Runtime Error
17
2940
80
a,b,c=map(int,input()split()) if a<=c<=b: print("Yes") else: print("No")
s024486829
p03719
u607437307
1517046866
Python
Python (2.7.6)
py
Runtime Error
11
2568
340
n, k = map(lambda x: int(x), raw_input().split(" ")) d = {} d2 = {} count = 0 for i in range(n): a1, b1 = map(lambda x: int(x), raw_input().split(" ")) count += b1 if a1 in d.keys(): d[a1] += count else: d[a1] = count for item in sorted(d.items()): if item[1] >= k: print it...
s436483929
p03719
u061916079
1509217472
Python
Python (3.4.3)
py
Runtime Error
152
12504
1012
# -*- coding: utf-8 -*- import math import sys import itertools import numpy as np import functools import collections mo = 1000000007 INF = 10**100 r = range class infix(object): def __init__(self, function): self.function = function def __ror__(self, other): self.left = other return ...
s341255872
p03719
u451017206
1503119121
Python
Python (3.4.3)
py
Runtime Error
17
3064
594
N, M = map(int,input().split()) tree = {} for i in range(M): a, b, c = map(int, input().split()) v= tree.get(a,[]) v.append([b, c]) tree[a] = v def has_loop(tree): pass m = [] def cost(v, c, visited): if v in visited: print('inf') exit() b = tree.get(v, None) if b is N...
s881954040
p03719
u451017206
1503105851
Python
Python (3.4.3)
py
Runtime Error
18
3188
136
N, K = map(int,input().split()) l = [] for i in range(N): a, b = map(int, input().split()) l += [a] * b print(sorted(l)[K-1])
s835429068
p03719
u087279476
1502223033
Python
Python (3.4.3)
py
Runtime Error
17
2940
91
a b c = map(int, input().split()) if a<=c and c<=b: print("Yes") else: print("No")
s619032717
p03719
u087279476
1502222979
Python
Python (3.4.3)
py
Runtime Error
16
2940
95
a b c = map(int, input().split()) if a<=c and c<=b: print("Yes") else: print(”No”)
s060305942
p03719
u978783125
1502045737
Python
Python (3.4.3)
py
Runtime Error
16
2940
111
xs = map(int, raw_input().split()) if xs[2] >= xs[0] and xs[2] <= xs[1]: print "Yes" else: print "No"
s306586346
p03719
u057586044
1501777509
Python
Python (3.4.3)
py
Runtime Error
17
3060
194
N,K = map(int,input().split()) temp = [] c,t = K,-1 for i in range(N): temp.append(list(map(int,input().split()))) temp.sort() while c>0: t += 1 c -= temp[t][1] print(temp[t][0])
s195717543
p03719
u853586331
1499447406
Python
Python (3.4.3)
py
Runtime Error
18
3188
148
N,M=map(int,input().split()) list1=[] for i in range (M): list1 += list(map(int,input().split())) for j in range(1,N+1): print (list1.count(j))
s699734748
p03719
u293072892
1498859383
Python
Python (2.7.6)
py
Runtime Error
11
2568
120
mport sys a, b, c = (int (i) for i in raw_input().split()) if c >= a and c <= b: print 'yes' else: print 'no'
s244226091
p03719
u293072892
1498858618
Python
Python (3.4.3)
py
Runtime Error
17
2940
123
import sys a, b, c = (int (i) for i in raw_input().split()) if c >= a and c <= b: print 'yes' else: print 'no'
s739991276
p03719
u871999682
1498766556
Python
Python (2.7.6)
py
Runtime Error
11
2696
714
def max_score(edge,N): inf =float("inf") w = [-inf for i in range(int(N)+1)] w[1] = 0; while True: update = False negative = False for e in edge: if e[0] > e[1] and e[2]>0: negative = True update = True break ...
s872077920
p03719
u495267515
1498252639
Python
Python (3.4.3)
py
Runtime Error
36
4684
301
# -*- coding: utf-8 -*- import sys import subprocess import json import time import math import re import sqlite3 N, M = map(int, input().split()) l = [0] * N for i in range(M): a, b = map(int, input().split()) a -= 1; b -= 1; l[a] += 1 l[b] += 1 for i in range(N): print(l[i])
s031801261
p03719
u404062634
1497905653
Python
Python (3.4.3)
py
Runtime Error
18
3060
247
N,K = map(int,input().split()) list1 = [] for i in range(N): list1.append(list(map(int,input().split()))) list1.sort() list2 = [] for j in range(N): list2 += [list1[j][0]]*list1[j][1] if len(list2) >= K: break print(list2[K-1])
s902875596
p03719
u820351940
1497895861
Python
Python (3.4.3)
py
Runtime Error
17
2940
58
a,b,c = map(int,input()) print("Yes" if a<=c<=b else "No")
s606104415
p03719
u502149531
1497859238
Python
Python (3.4.3)
py
Runtime Error
17
2940
200
b, c, d = map(int, input().split()) if b < c : if b <= d <= c : print('Yes') else : print('No') else : if b <= d <= c : print('Yes') else : print('No')
s109899520
p03719
u548986948
1497820697
Python
Python (2.7.6)
py
Runtime Error
10
2568
416
#-*- coding: utf-8 -*- def get_ans(): n, k = map(int, raw_input().split()) src = [] for i in range(n): src.append(map(int, raw_input().split())) src.sort(key=lambda x:x[0]) # 0番目の要素でソート cnt = 0 for a, b in src: cnt = cnt + b if cnt >= k: return a ...
s887418098
p03719
u404062634
1497392641
Python
Python (3.4.3)
py
Runtime Error
17
2940
268
#N,Mとa_1からb_Mまで入力 N,M = map(int,input().split()) list1 = [input() for i in range(1,2M+1)] for i in range(M): list1.append(map(int,input() .split())) #print list.count(l) for文で0から2M-1まで for l in range(1,N+1): print(list1.count(l))
s857128844
p03719
u467027051
1496499273
Python
Python (3.4.3)
py
Runtime Error
18
3188
354
# -*- coding: utf-8 -*- # initialize N,K = map(int, input().split()) list = [0] * 10**5 # In:list, Out:ans def solve(k,l): for i in range(len(l)): k -= l[i] if (k <= 0): return i return 0 # Input a and b to the list for i in range(N): a,b = map(int, input().split()) list[a...
s183352940
p03719
u654824270
1496492600
Python
Python (3.4.3)
py
Runtime Error
17
2940
184
N, M = map(int, input().split()) m_list = [0] * (N + 1) for i in range(M): a, b = map(int, input().split()) m_list[a] += 1 m_list[b] += 1 for j in m_list[1:]: print(j)
s755891533
p03719
u467027051
1496374557
Python
Python (3.4.3)
py
Runtime Error
17
2940
159
def Judge(a, b, c): if a > c: return 'No' elif c > b: return 'No' else: return 'Yes' Judge(map(int, raw_input().split()))
s443664700
p03719
u467027051
1496374538
Python
Python (3.4.3)
py
Runtime Error
17
2940
184
# -*- coding: utf-8 -*- def Judge(a, b, c): if a > c: return 'No' elif c > b: return 'No' else: return 'Yes' Judge(map(int, raw_input().split()))
s012476334
p03719
u467027051
1496374317
Python
Python (3.4.3)
py
Runtime Error
18
2940
124
# -*- coding: utf-8 -*- a,b,c = map(int, raw_input().split()) if a <= c and b >= c: print('Yes') else: print('No')
s263318719
p03719
u467027051
1496374218
Python
Python (3.4.3)
py
Runtime Error
17
2940
124
# -*- coding: utf-8 -*- a,b,c = map(int, raw_input().split()) if a <= c and b >= c: print('Yes') else: print('No')
s619447052
p03719
u467027051
1496374202
Python
Python (3.4.3)
py
Runtime Error
18
2940
146
#!/usr/bin/env python # -*- coding: utf-8 -*- a,b,c = map(int, raw_input().split()) if a <= c and b >= c: print('Yes') else: print('No')
s837040252
p03719
u467027051
1496374099
Python
Python (3.4.3)
py
Runtime Error
17
2940
146
#!/usr/bin/env python # -*- coding: utf-8 -*- a,b,c = map(int, raw_input().split()) if a <= c and b >= c: print("Yes") else: print("No")
s672776904
p03719
u037164984
1495777993
Python
Python (3.4.3)
py
Runtime Error
17
3060
215
# -*- coding: utf-8 -*- N, K = map(int,input().split()) A = [] while True: a, b = map(int,input().split()) B = [a for j in range(b)] A.extend(B) if len(A) >= K: print(A[K-1]) break
s130084416
p03719
u351527281
1495249585
Python
Python (3.4.3)
py
Runtime Error
18
3060
169
n,k=map(int,input().split()) string = '' for i in range(n): a,b=(input().split()) string += a*int(b) string = [int(i) for i in string] print(sorted(string[k-1]))
s690412290
p03719
u351527281
1495248781
Python
Python (3.4.3)
py
Runtime Error
17
2940
135
n,k=map(int,input().split()) string = '' for i in range(n): a,b=(input().split()) string += a*int(b) print(sorted(string)[k-1])
s847826961
p03719
u351527281
1495248562
Python
Python (3.4.3)
py
Runtime Error
17
2940
127
n,k=map(int,input().split()) string = '' for i in range(n): a,b=(input().split()) string += a*int(b) print(string[k-1])
s750718567
p03719
u192908410
1495145666
Python
Python (3.4.3)
py
Runtime Error
17
3060
153
n,m = map(int,input().split()) l = [0]*n for i in range(0,m): for j in list(map(int,input().split())): l[j-1]+=1 for i in range(0,n): print(l[i])
s717672521
p03719
u898690911
1495029525
Python
Python (3.4.3)
py
Runtime Error
17
2940
461
#問題文 #3 つの整数 A,B,C が与えられます。 #整数 C が A 以上 かつ B 以下であるかを判定してください。 #制約 #−100≦A,B,C≦100 #A,B,C は全て整数 #入力 #入力は以下の形式で標準入力から与えられる。 #A B C #出力 #条件を満たす場合はYes、そうでない場合はNoを出力せよ。 A=input() B=input() C=input() if C>=A and C<=B: print("yes") else: print("No")
s688233098
p03719
u859491652
1494948260
Python
Python (3.4.3)
py
Runtime Error
17
3064
449
# N,Mの把握 l = list(map(int, input().split())) N = l[0] M = l[1] #list(map(str, input().split()))をM回くりかえし、1つのリストにまとめる。 c = [] for i in range(M): c = c + list(map(int, input().split())) # リストを指定の番号で検索して、項目数を返す関数 def r(x): y = str(c.count(x)) return y #都市番号1からNまでリストを検索し、出力 dic = {} for i in range(1,N+1): print(r(i)...
s937767176
p03719
u800610991
1494906289
Python
Python (3.4.3)
py
Runtime Error
17
2940
188
# -*- coding: utf-8 -*- # get three integers separated with half-width break a, b, c = map(int, raw_input().split()) # output if c >= a and c <= b: print('Yes') else: print("No")
s502199314
p03719
u800610991
1494906113
Python
Python (3.4.3)
py
Runtime Error
17
2940
188
# -*- coding: utf-8 -*- # get three integers separated with half-width break a, b, c = map(int, raw_input().split()) if c >= a and c <= b: print('Yes') else: print("No") # output
s007823484
p03719
u800610991
1494905969
Python
Python (3.4.3)
py
Runtime Error
17
2940
187
# -*- coding: utf-8 -*- # get three integers separated with half-width break a, b, c = map(int, raw_input().split()) if c >= a and c <= b: print('Yes') else print("No") # output
s233233913
p03719
u818050295
1494889944
Python
Python (3.4.3)
py
Runtime Error
17
3064
243
b = input().split(" ") num = [0 for i in range(int(b[0]))] for i in range(int(b[1])): a = input().split(" ") num[int(a[0])-1] = num[int(a[0])-1]+1 num[int(a[1])-1] = num[int(a[1])-1]+1 for i in range(int(b[0])): print(num[i])
s558827172
p03719
u818050295
1494889817
Python
Python (3.4.3)
py
Runtime Error
17
3064
243
a = input().split(" ") num = [0 for i in range(int(a[0]))] for i in range(int(a[1])): a = input().split(" ") num[int(a[0])-1] = num[int(a[0])-1]+1 num[int(a[1])-1] = num[int(a[1])-1]+1 for i in range(int(a[1])): print(num[i])
s687093468
p03719
u009102496
1494881427
Python
Python (3.4.3)
py
Runtime Error
17
2940
91
a,b,c=map(int,input().split()) . if a<=c and b>=c: print("Yes") else: print("No")
s245589848
p03719
u009102496
1494881377
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
a,b,c=map(int,input().split()) 2. 3.if a<=c and b>=c: 4. print("Yes") 5.else: 6. print("No")
s935499957
p03719
u009102496
1494881338
Python
Python (3.4.3)
py
Runtime Error
17
2940
88
a,b,c=map(int,input().split()) if a<=c and b>=c: print("Yes") else; print("No")
s409681528
p03719
u268210555
1494867588
Python
Python (3.4.3)
py
Runtime Error
17
3064
323
n,m=map(int,input().split()) e=[tuple(map(int,input().split())) for _ in range(m)] d=[0]+[-float('inf')]*(n-1) for _ in range(n-1): for a,b,c in e: d[b-1]=max(d[b-1],d[a-1]+c) r=d[n-1] for _ in range(n-1): for a,b,c in e: d[b-1]=max(d[b-1],d[a-1]+c) if d[n-1]==r: print(r) else: print('in...
s210958305
p03719
u505831576
1494794293
Python
Python (3.4.3)
py
Runtime Error
17
2940
108
ss=input() abc=ss.split() abc[0] if abc[2]>=abc[0] and abc[2]<=abc[1]: print("yes") else: print("no)
s856861639
p03719
u505831576
1494794210
Python
Python (3.4.3)
py
Runtime Error
17
2940
108
ss=input() abc=ss.split() abc[0] if abc[2]>=abc[0] and anc[2]<=abc[1]: print("yes") else: print("no)
s776352267
p03719
u382423941
1494791063
Python
Python (3.4.3)
py
Runtime Error
21
3316
280
import sys from collections import defaultdict n,k = map(int, input().split()) di = defaultdict(int) for i in range(n): a, b = map(int, input().split()) di[a] += b cnt = 0 for x in sorted(di.keys()): cnt += di[x] if cnt >= k: print(x) sys.exit()
s410883309
p03719
u430478288
1494788437
Python
Python (3.4.3)
py
Runtime Error
17
3064
560
N, M = list(map(int, input().split())) a = [] b = [] c = [] for i in range(M): a_i, b_i, c_i = list(map(int, input().split())) a.append(a_i) b.append(b_i) c.append(c_i) cost = [-float('inf') for i in range(N)] cost[0] = 0 flag = True while flag: for k in range(M): cost[b[k] - 1] = max(co...
s515613053
p03719
u676264453
1494785913
Python
Python (3.4.3)
py
Runtime Error
17
2940
131
nums = list(map(int, input().split())) t = nums[2] if (nums[0] <= t and nums[1] >= t): print('Yes') else: print('No')
s536502933
p03719
u706884679
1494774038
Python
Python (3.4.3)
py
Runtime Error
18
2940
196
N, K = map(int, input().split()) c = [] for i in range(N): c.append(input().split()) c.sort(key=lambda x: x[0]) f = 0 for i in range(N): f += int(c[i][1]) if f >= K: print(c[i][0]) break
s340123649
p03719
u382748202
1494741995
Python
Python (3.4.3)
py
Runtime Error
18
3188
1673
import sys sys.setrecursionlimit(100000) def set_enable_goal(cur_node, back_paths, enable_goal): if cur_node in back_paths: for next_node in back_paths[cur_node]: if enable_goal[next_node - 1] == 0: enable_goal[next_node - 1] = 1 set_enable_goal(next_node, back_p...
s248819966
p03719
u562120243
1494739407
Python
PyPy3 (2.4.0)
py
Runtime Error
191
40432
275
nk = [int(i) for i in input().split()] n = nk[0] k = nk[1] array = [] count = [] for i in range(n): num = input().split() a = num[0] b = int(num[1]) k -= b array.append(a) if k <= 0: break else: array.pop() print(array[0])
s662000105
p03719
u432688695
1494736392
Python
Python (3.4.3)
py
Runtime Error
17
3064
1241
# -*- coding: utf-8 -*- import sys import os import math N, M = map(int, input().split()) #print('N', N) #print('M', M) A = [[] for i in range(N)] for i in range(M): a, b, c = map(int, input().split()) a -= 1 b -= 1 A[a].append((b, -c)) # 始点から到達不可能な頂点は除去する visited = [False] * N Q = [0] while Q: ...
s051922925
p03719
u907962823
1494733735
Python
Python (3.4.3)
py
Runtime Error
17
2940
86
i = int(raw_input().split()) if i[0] <= i[2] <= i[1]: print("Yes") else: print("No")
s746199487
p03719
u907962823
1494733301
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
i = raw_input().split() if i[0] <= i[2] <= i[1]: print("Yes") else: print("No")
s363343711
p03719
u024612773
1494732252
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
a,b,c=map(int,input().split()) print('Yes' if a <= c <= b else ''No')
s305106903
p03719
u638552534
1494729463
Python
Python (2.7.6)
py
Runtime Error
284
16212
1448
import numpy as np n, m = map(int, raw_input().split()) g = [] for i in range(m): g.append(map(int, raw_input().split())) graph = {} for i in g: if i[0] not in graph: graph[i[0]] = [[i[1], i[2]]] else: graph[i[0]].append([i[1], i[2]]) table = np.zeros(n + 1) + 0.5 table[1] = 0 fp = [1] fo...
s710267571
p03719
u423926736
1494729337
Python
Python (2.7.6)
py
Runtime Error
10
2568
463
import sys v = map(int,raw_input().strip().split(" ")) n = 0; k = 0; i = 0; for c in v: if i == 0: n = c elif i == 1: k = c i += 1 nums = [] sizes = [] for c in range(1,n): w = map(int,raw_input().strip().split(" ")) x = 0 for d in w: if x == 0: nums.insert(c-1,d) elif x == 1: sizes.insert(c-1,d...
s973526112
p03719
u423926736
1494729189
Python
Python (3.4.3)
py
Runtime Error
17
3064
672
import sys v = map(int,raw_input().strip().split(" ")) n = 0; k = 0; i = 0; for c in v: if i == 0: n = c elif i == 1: k = c i += 1 nums = [] sizes = [] for c in range(1,n): w = map(int,raw_input().strip().split(" ")) x = 0 for d in w: ...
s957419894
p03719
u462626125
1494728757
Python
Python (3.4.3)
py
Runtime Error
17
3064
298
nums = [int(x) for x in input().split()] N = nums[0] K = nums[1] arr = [] for i in range(N): nums = [int(x) for x in input().split()] arr.append(tuple(nums)) arr = sorted(arr, key=lambda x: x[0]) vol = 0 for i in range(len(arr)): vol = vol + arr[i][1] if vol >= K: print(arr[i][0]) break
s151479555
p03719
u897575257
1494728662
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
int(a, b, c) = [(i) for i in input().split()] if c >= a and c <= b: print('Yes') else: print('No')
s172112138
p03719
u897575257
1494728389
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
a, b, c = [(i) for i in int(input()).split()] if c >= a and c <= b: print('Yes') else: print('No')
s537415158
p03719
u254343015
1494728338
Python
Python (2.7.6)
py
Runtime Error
10
2696
779
N,M = map(int,raw_input().split()) W = [['inf' for j in range(N)] for i in range(N)] y = ['inf' for i in range(N)] y_t = ['inf' for i in range(N)] y[0] = 0 y_t[0] = 0 for i in range(N): W[i][i]=0 for i in range(M): a,b,c=map(int,raw_input().split()) W[a-1][b-1] = c flag = False for i in range(N): f...
s633856554
p03719
u897575257
1494728192
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
a, b, c = [(i) for i in int(input().split())] if c >= a and c <= b: print('Yes') else: print('No')
s435103534
p03719
u007848713
1494728020
Python
Python (3.4.3)
py
Runtime Error
18
3064
394
def flatten(nested_list): return [e for inner_list in nested_list for e in inner_list] nk = input().split() kai = int(nk[0]) banme = int(nk[1]) lis = [] i = 0 while(i < kai): c = input().split() a = int(c[0]) b = int(c[1]) n = 0 tmplis = [a] * b lis.append(tmplis) print(lis) i += 1 ...
s748523378
p03719
u007848713
1494727985
Python
Python (3.4.3)
py
Runtime Error
18
3064
394
def flatten(nested_list): return [e for inner_list in nested_list for e in inner_list] nk = input().split() kai = int(nk[0]) banme = int(nk[1]) lis = [] i = 0 while(i < kai): c = input().split() a = int(c[0]) b = int(c[1]) n = 0 tmplis = [a] * b lis.append(tmplis) print(lis) i += 1 ...
s604870958
p03719
u254343015
1494727651
Python
Python (2.7.6)
py
Runtime Error
10
2696
787
N,M = map(int,raw_input().split()) road_list = [[] for i in range(N)] W = [[-2*(10**9)-1 for j in range(N)] for i in range(N)] y = [-2*(10**9)-1 for i in range(N)] y_t = [-2*(10**9)-1 for i in range(N)] y[0] = 0 y_t[0] = 0 for i in range(N): W[i][i]=0 for i in range(M): a,b,c=map(int,raw_input().split()) ...
s880598756
p03719
u276876245
1494727096
Python
Python (2.7.6)
py
Runtime Error
10
2568
474
d={} N,K=map(int,raw_input().split()) for i in xrange(N): a,b=map(int,raw_input().split()) # print a,b if a in d: d[a] = d[a] + b else: d[a]=b # td={} # cnt=0 # print d # for key in sorted(d): # print key # if cnt<=K: # td[key]=d[key] # else: #...
s529943762
p03719
u483747145
1494726941
Python
Python (3.4.3)
py
Runtime Error
17
3064
362
N = [] K = [] key_num, tmp = map(int, input().split()) x = 0 while x < key_num: a, b = map(int, input().split()) N.append(a) K.append(b) x += 1 #print(N, K) input_data = [] n = 0 for i in N: now = 1 while now <= K[n]: input_data.append(i) now += 1 n += 1 #print(input_data) in...
s256399873
p03719
u897575257
1494726882
Python
Python (2.7.6)
py
Runtime Error
10
2568
109
a, b, c = [(i) for i in input().split()] if c >= a: if c >= b: print('Yes') else: print('No')
s733370682
p03719
u529186305
1494726779
Python
Python (2.7.6)
py
Runtime Error
10
2568
214
# -*- coding: utf-8 -*- import sys args = sys.argv A = int(args[1]) B = int(args[2]) C = int(args[3]) #-------------------------- #比較処理 if C >= A and C <= B: print 'YES' else: print 'NO' return 0
s024053184
p03719
u483747145
1494726615
Python
Python (3.4.3)
py
Runtime Error
18
3064
357
N = [] K = [] while True: a, b = map(int, input().split()) if a == -1: break N.append(a) K.append(b) key = K[0] del N[0] del K[0] print(N, K) input_data = [] n = 0 for i in N: now = 1 while now <= K[n]: input_data.append(i) now += 1 n += 1 print(input_data) input_data...
s880494715
p03719
u529186305
1494726400
Python
Python (2.7.6)
py
Runtime Error
10
2568
205
# -*- coding: utf-8 -*- import sys args = sys.argv A = int(args[1]) B = int(args[2]) C = int(args[3]) #-------------------------- #比較処理 if C >= A and C <= B: print 'YES' else: print 'NO'
s858157787
p03719
u529186305
1494726160
Python
Python (2.7.6)
py
Runtime Error
13
2696
492
# -*- coding: utf-8 -*- import sys args = sys.argv A = int(args[1]) B = int(args[2]) C = int(args[3]) #-------------------------- #入力値のチェック処理 if A < -100 or A > 100: print A + u'は範囲外です' sys.exit() if B < -100 or A > 100: print B + u'は範囲外です' sys.exit() if C < -100 or C > 100: print C + u'は範囲外です' ...
s314621111
p03719
u746233170
1494726152
Python
Python (3.4.3)
py
Runtime Error
17
3064
307
# -*- coding: utf-8 -*- x = input() y=[] y=x.split(" ") N=int(y[0]) M=int(y[1]) z=[] for i in range(M): temp1=input() temp2=temp1.split(" ") for j in temp2: j=int(j) z.append(j) dict={} for i in range(N): i+=1 dict[i]=0 for i in z: dict[i]=dict[i]+1 for i in range(N): i+=1 print(dict[i])
s532795521
p03719
u580920947
1494725628
Python
Python (3.4.3)
py
Runtime Error
17
2940
105
a, b, c = map(int, input().split()) if (a =< c) and (c =< b): print('Yes') else: print('No')
s661626312
p03719
u752982538
1494725515
Python
Python (2.7.6)
py
Runtime Error
11
2568
195
N, M = map(int, raw_input().split()) kotae = [0]*N for i in range(M): l=map(int, raw_input().split()) for j in range(len(l)): kotae[l[j]-1]=kotae[l[j]-1]+1 for k in range(N): print kotae[k]
s895193479
p03719
u997053690
1494725455
Python
Python (2.7.6)
py
Runtime Error
10
2568
415
# -*- coding: utf-8 -*- # def flatten(nested_list): # return [e for inner_list in nested_list for e in inner_list] N, K = map(int, raw_input().split()) a = [0] * N b = [0] * N ab = [[0, 0]] * N for i in range(N): _a, _b = map(int, raw_input().split()) ab[i] = [_a, _b] ab.sort(key=lambda x:x[0]) j = 0 in...
s098746075
p03719
u341087021
1494724970
Python
Python (3.4.3)
py
Runtime Error
18
2940
205
import sys n,m = [int(x) for x in sys.stdin.readline().split()] r = [0] * n for i in range m: a, b = [int(x) for x in sys.stdin.readline().split()] r[a-1] += 1 r[b-1] += 1 for i in range n: print(r[i])
s324105656
p03719
u907962823
1494724624
Python
Python (3.4.3)
py
Runtime Error
17
3064
101
i = int(input().split()) if (i[0] <= i[2]) and (i[1] >= i[2]): print("Yes") else: print("No")
s035529859
p03719
u581225619
1494724468
Python
Python (3.4.3)
py
Runtime Error
17
2940
88
print((lambda a,b,c: "YES" if a<=c&&c<=b else "NO")(*[int(_) for _ in input().split()]))
s199564087
p03719
u255555420
1494724367
Python
Python (3.4.3)
py
Runtime Error
17
2940
108
a,b,c =map(int,input().split()) a,b,c =abc.split() if c>=a and c<=b: print("YES") else: print("NO")
s130711326
p03719
u907962823
1494723985
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
i = int(input().split()) if (i[0] <= i[2]) && (i[1] >= i[2]): print("Yes") else: print("No")
s093575219
p03719
u216914060
1494723962
Python
Python (3.4.3)
py
Runtime Error
16
2940
78
a, b, c = input() if a <= c and c <= b: print('Yes') else: print('No')
s673206639
p03719
u590905793
1494723766
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
a,b,c = map(int,input().split()) if a <= b and b <= c: print ("Yes") else: print ("No")
s425344950
p03719
u590905793
1494723715
Python
Python (3.4.3)
py
Runtime Error
17
2940
90
a,b,c = map(int,input(),split()) if a <= b and b <= c: print ("Yes") else: print ("No")
s749758951
p03719
u657357805
1494723684
Python
Python (3.4.3)
py
Runtime Error
17
2940
93
a,b,c = [int(x) for x in input().split()] if c>=a and c<=b: print("Yes") else print("No")
s622088821
p03719
u119714109
1494723644
Python
Python (3.4.3)
py
Runtime Error
17
2940
232
import sys stdin = sys.stdin def na(): return map(int, stdin.readline().split()) def ns(): return stdin.readline().strip() a,b,c = map(int, stdin.readlien().split()) if a <= c <= b: print("Yes") else: print("No")
s325445657
p03720
u498531348
1601161431
Python
PyPy3 (7.3.0)
py
Runtime Error
75
68696
262
import collections N, M = map(int, input().split()) xy = [map(int, input().split()) for _ in range(M)] x, y = [list(i) for i in zip(*xy)] M = [] Z = x + y Z = sorted(Z) c = collections.Counter(Z) V = list(c.values()) for i in range(N): print(V[i])
s525645165
p03720
u546853743
1601153679
Python
Python (3.8.2)
py
Runtime Error
27
9108
162
n,m=map(int,input().split()) a=[] b=[] for i in range(m): a.append(input()) b.append(input()) for j in range(n): print(a.count(j+1)+b.count(j+1))
s383403623
p03720
u546853743
1601153653
Python
Python (3.8.2)
py
Runtime Error
24
9104
158
n,m=map(int,input().split()) a=[] b=[] for i in range(m): a.append(input()) b.append(input()) for j in range(n): print(a.count(j)+b.count(j))
s791644887
p03720
u318427318
1600664201
Python
Python (3.8.2)
py
Runtime Error
25
9140
434
#-*-coding:utf-8-*- import sys input=sys.stdin.readline def main(): numbers=[] n,m = map(int,input().split()) numbers=[list(map(int,input().split())) for _ in range(m)] dp={} for number in numbers: for n in number: if n not in dp: dp[n]=1 else: ...
s539540922
p03720
u318427318
1600664136
Python
Python (3.8.2)
py
Runtime Error
24
9144
500
#-*-coding:utf-8-*- import sys input=sys.stdin.readline def main(): numbers=[] #n = int(input()) n,m = map(int,input().split()) #numbers=list(map(int,input().split())) numbers=[list(map(int,input().split())) for _ in range(m)] dp={} for number in numbers: for n in number: ...
s647576229
p03720
u318427318
1600662847
Python
Python (3.8.2)
py
Runtime Error
27
9200
489
#-*-coding:utf-8-*- import sys input=sys.stdin.readline def main(): numbers=[] #n = int(input()) n,m = map(int,input().split()) #numbers=list(map(int,input().split())) numbers=[list(map(int,input().split())) for _ in range(m)] dp={} for number in numbers: for n in number: ...