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
s758469052
p03695
u303059352
1549243040
Python
Python (3.4.3)
py
Runtime Error
18
3064
1582
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<ll> vll; typedef vector<vll> vvll; typedef vector<vvll> vvvll; typedef vector<string> vstr; typedef pair<ll, ll> pll; typedef vector<pll> vp; typedef map<ll, ll> mll; typedef map<string, ll> mstrll; #defin...
s485842529
p03695
u239981649
1549234218
Python
Python (3.4.3)
py
Runtime Error
18
2940
242
n = int(input()) a = sorted(map(int, v input().split())) cnt = 0 for k in range(1, 9): b = list(filter(lambda x: x < 400*k, a)) if b: cnt += 1 a = a[len(b):] if cnt: print(cnt, cnt+len(a)) else: print(1, len(a))
s619526541
p03695
u219607170
1548900346
Python
Python (3.4.3)
py
Runtime Error
17
2940
361
N = int(input()) A = list(map(int, input().split())) color = [False] * 8 over3200 = 0 for a in A: for i in range(8): if 400*i =< a < 400*(i+1): color[i] = True break else: over3200 += 1 if sum(color): print(sum(color), end=' ') print(sum(color) + over3200) else: ...
s360332805
p03695
u762955009
1548390325
Python
Python (3.4.3)
py
Runtime Error
18
3064
289
colors = { 0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0 } N = int(input()) A = list(map(int, input().split())) for a in A: colors[a // 400] += 1 min_clr = 0 for i in range(0, 8): if colors[i] > 0: min_clr += 1 print("{} {}".format(min_clr, min_clr + colors[8]))
s402742635
p03695
u597374218
1547753491
Python
Python (3.4.3)
py
Runtime Error
18
3064
360
N=int(input()) A=list(map(int,input().split())) c=[0]*8 d=0 for a in A: if 1<=a<=399:c[0]=1 elif 400<=a<=799:c[1]=1 elif 800<=a<1199:c[2]=1 elif 1200<=a<=1599:c[3]=1 elif 1600<=a<=1999:c[4]=1 elif 2000<=a<=2399:c[5]=1 elif 2400<=a<=2799:c[6]=1 elif 2800<=a<=3199:c[7]=1 else:d+=1 if d...
s340726911
p03695
u089032001
1546484682
Python
Python (3.4.3)
py
Runtime Error
18
3064
275
N = int(input()) A = [0] * 9 for a in list(map(int, input().split())): A[min(a//400, 9)] += 1 ans = 0 for a in A[:-1]: ans += int(a>0) max_ans = min(ans+A[-1], 8) if A[-1] > 0: min_ans = max(1, ans) else: min_ans = ans print(min_ans, end=" ") print(max_ans)
s725230355
p03695
u844789719
1546394718
Python
Python (3.4.3)
py
Runtime Error
18
3060
237
N = int(input()) A = [int(_) for _ in input().split()] colors = [0] * 9 for a in A: c = a // 400 if c < 8: colors[c] = 1 else: colors[c] += 1 print(max(sum(colors[:8]), 1), min(sum(colors[:8]) + colors[8], 8))
s311799953
p03695
u785578220
1545573083
Python
Python (3.4.3)
py
Runtime Error
151
12516
564
#C Colorful import numpy as np a = int(input()) x = list(map(int,input().split())) x.sort() x = x[::-1] n =0 k = [0,0,0,0,0,0,0] for i in x: if i > 3199: n +=1 elif i < 400: k[0] = 1 elif i < 800: k[1] = 1 elif i < 1200: k[2] = 1 elif i < 1600: k[3] = 1 el...
s188865476
p03695
u017810624
1545003184
Python
Python (3.4.3)
py
Runtime Error
18
3060
171
n=int(input()) a=list(map(int,input().split())) l=[0 for i in range(9)] for j in range(n): l[a[j]//400]+=1 c=0 for k in range(len(l)-1): if l[k]>0:c+=1 print(c,c+l[8])
s735237143
p03695
u138486156
1544585683
Python
Python (3.4.3)
py
Runtime Error
18
3064
560
n = int(input()) a = list(map(int, input().split())) s = set() c = 0 for i in range(n): if 1 <= a[i] <= 399: s.add(1) elif 400 <= a[i] <= 799: s.add(2) elif 800 <= a[i] <= 1199: s.add(3) elif 1200 <= a[i] <= 1599: s.add(4) elif 1600 <= a[i] <= 1999: s.ad...
s903874140
p03695
u669382434
1544215365
Python
Python (3.4.3)
py
Runtime Error
18
3060
186
n=int(input()) a=[int(i) for i in input().split()] iro=[0 for i in range(8)] tyi=0 for i in range(n): if a<3200: iro[int(a/400)]=1 else: tyi+=1 print(min(iro.count(1)+tyi,8))
s006472331
p03695
u466105944
1542384508
Python
Python (3.4.3)
py
Runtime Error
17
3060
330
n = int(input()) num_list = list(map(int,input().split())) pros = 0 for i in range(len(num_list)): color = num_list[i]//400 if color < 8: num_list[i] = color else: del(num_list[i]) pros += 1 min_ans = len(set(num_list)) max_ans = len(set(num_list))+pros print('{} {}' .format(min_ans...
s672105279
p03695
u644778646
1542052437
Python
Python (3.4.3)
py
Runtime Error
21
3064
893
N = int(input()) a = list(map(int,input().split())) baclet = [False] * 9 baclet[8] = 0 for val in a: if val < 400: baclet[0] = True elif val >= 400 and val < 800: baclet[1] = True elif val >= 800 and val < 1200: baclet[2] = True elif val >= 1200 and val < 1600: bacle...
s210410294
p03695
u397531548
1541803037
Python
Python (3.4.3)
py
Runtime Error
18
3064
581
N=int(input()) S=input().split() for i in range(0,N): s=int(S[i]) if 1<=s<=399: S[i]="a" if 400<=s<=799: S[i]="b" if 800<=s<=1199: S[i]="c" if 1200<=s<=1599: S[i]="d" if 1600<=s<=1999: S[i]="e" if 2000<=s<=2399: S[i]="f" if 2400<=s<=2799: ...
s587799793
p03695
u397531548
1541800857
Python
Python (3.4.3)
py
Runtime Error
19
3064
534
N=int(input()) S=input().split() for i in range(0,N): s=int(S[i]) if 1<=s<=399: S[i]="a" if 400<=s<=799: S[i]="b" if 800<=s<=1199: S[i]="c" if 1200<=s<=1599: S[i]="d" if 1600<=s<=1999: S[i]="e" if 2000<=s<=2399: S[i]="f" if 2400<=s<=2799: ...
s091096797
p03695
u879870653
1541770898
Python
Python (3.4.3)
py
Runtime Error
18
3064
573
N = int(input()) L = list(map(int,input().split())) D = {} p = 0 for i in range(N) : if L[i] < 400 : color = 0 elif L[i] < 800 : color = 1 elif L[i] < 1200 : color = 2 elif L[i] < 1600 : color = 3 elif L[i] < 2000 : color = 4 elif L[i] < 2400 : col...
s531107328
p03695
u179169725
1541448394
Python
Python (3.4.3)
py
Runtime Error
160
12836
396
import numpy as np N = int(input()) A = np.array(list(map(int, input().split()))) col = [] # boolean for rate in range(0, 3200, 400): if len(A[(rate <= A) & (A < (rate + 400))]) is not 0: col.append(True) else: col.append(False) jiyu = len(A[(3200 <= A)]) # 自由枠 # min mi = sum(col) # max i...
s831738337
p03695
u404676457
1541359856
Python
Python (3.4.3)
py
Runtime Error
17
3064
540
for i in range(n): if a[i] < 400: mapa[1] += 1 elif a[i] < 800: mapa[2] += 1 elif a[i] < 1200: mapa[3] += 1 elif a[i] < 1600: mapa[4] += 1 elif a[i] < 2000: mapa[5] += 1 elif a[i] < 2400: mapa[6] += 1 elif a[i] < 2800: mapa[7] += 1 ...
s660954138
p03695
u434329006
1541297837
Python
Python (3.4.3)
py
Runtime Error
17
3060
381
N = input() a = list(map(int,input().split())) over3200 = 0 syurui_min = 0 syurui_max = 0 b = [0] * 8 for i in a: if 3200 <= i and i <= 4800: over3200 += 1 else: b[min(i // 400)] = 1 for i in b: if(i == 1): syurui_min += 1 syurui_max = syurui_min + over3200 if syurui_min == 0: sy...
s984631875
p03695
u232852711
1541268492
Python
Python (3.4.3)
py
Runtime Error
17
3064
299
n = int(input()) a = list(map(int, input().split())) rates = [0]*9 for i in range(n): rates[a[i]//400] += 1 n_min, n_max = 0, 0 if max(rates[:-1]) > 0: for i in range(8): n_min += 1 if rates[i] > 0 else 0 n_max = n_min+rates[-1] else: n_min = 1 n_max = rates[-1] print(n_min, n_max)
s486654465
p03695
u232852711
1541268327
Python
Python (3.4.3)
py
Runtime Error
17
3064
299
n = int(input()) a = list(map(int, input().split())) rates = [0]*9 for i in range(n): rates[a[i]//400] += 1 n_min, n_max = 0, 0 if min(rates[:-1]) > 0: for i in range(8): n_min += 1 if rates[i] > 0 else 0 n_max = n_min+rates[-1] else: n_min = 1 n_max = rates[-1] print(n_min, n_max)
s648624894
p03695
u883048396
1541037524
Python
Python (3.4.3)
py
Runtime Error
17
3060
235
import sys iN = int(input()) aA = [int(_) for _ in input().split()] aCol = [0]*(4800//400) for a in aA: aCol[a//400] += 1 iMin = 0 for i in range(8): if aCol[i]: iMin += 1 iMax = iMin + sum(aCol[8:]) print(iMin,iMax)
s494384378
p03695
u791664126
1541017402
Python
Python (3.4.3)
py
Runtime Error
18
3064
510
import sys def color(x): if x<400:return('灰') elif 399<x<800:return('茶') elif 799<x<1200:return('緑') elif 1199<x<1600:return('水') elif 1599<x<2000:return('青') elif 1999<x<2400:return('黄') elif 2399<x<2800:return('橙') elif 2799<x<3200:return('赤') else:return('*') input() l=list(map(int,input().split())...
s711825062
p03695
u297109012
1540865023
Python
Python (3.4.3)
py
Runtime Error
17
3060
349
def solve(N, As): colors = set() allcount = 0 for a in As: if a // 400 < 8: colors.add(n) else: allcount += 1 return max(len(colors), 1), len(colors) + allcount if __name__ == "__main__": N = int(input()) As = map(int, input().split(" ")) m1, m2 = so...
s370110074
p03695
u853900545
1538347928
Python
Python (3.4.3)
py
Runtime Error
19
3064
510
n = int(input()) a = list(map(int,input().split())) for i in range(n): if a[i] < 400: a[i] = 0 elif a[i] < 800: a[i] = 1 elif a[i] < 1200: a[i] = 2 elif a[i] < 1600: a[i] = 3 elif a[i] < 2000: a[i] = 4 elif a[i] < 2400: a[i] = 5 elif a[i] < 28...
s640960864
p03695
u513081876
1538005675
Python
Python (3.4.3)
py
Runtime Error
17
2940
527
n = int(input()) a = list(map(int, input().split())) hai, tya midori = 0, 0, 0 miz, ao, ki = 0, 0, 0 yanagi, aka, got = 0, 0, 0 for i in a: if i<=399: hai = 1 elif i<=799: tya = 1 elif i<=1199: midori = 1 elif i <= 1599: miz = 1 elif i <= 1999: ao = 1 elif i <= 2399: ki = 1 elif...
s916911192
p03695
u513081876
1538005588
Python
Python (3.4.3)
py
Runtime Error
17
2940
533
n = int(input()) a = list(map(int, input().split())) hai, tya midori = 0, 0, 0 mmiz, ao, ki = 0, 0, 0 yanagi, aka, got = 0, 0, 0 for i in a: if i<=399: hai = 1 elif i<=799: tya = 1 elif i<=1199: midori = 1 elif i <= 1599: miz = 1 elif i <= 1999: ao = 1 elif i <= 2399: ki = 1 eli...
s715630085
p03695
u513081876
1538005493
Python
Python (3.4.3)
py
Runtime Error
17
2940
532
n = int(input()) a = list(map(int, input().split())) hai, tya midori = 0, 0, 0 mmiz, ao, ki = 0, 0, 0 yanagi, aka, got = 0, 0, 0 for i in a: if i<=399: ai = 1 elif i<=799: tya = 1 elif i<=1199: midori = 1 elif i <= 1599: miz = 1 elif i <= 1999: ao = 1 elif i <= 2399: ki = 1 elif...
s297242653
p03695
u303019816
1536156648
Python
Python (3.4.3)
py
Runtime Error
17
3060
316
n = int(input()) A = list(map(int, input().split())) count= [0 for _ in range(9)] for i in range(n): if a[i] // 400 >= 8: count[8] += 1 elif count[a[i] // 400] == 0: count[a[i] // 400] += 1 if count[8] == sum(count): print(1, sum(count)) else: print(sum(count)-count[8], sum(count))
s052218370
p03695
u221345507
1535243818
Python
Python (3.4.3)
py
Runtime Error
19
3316
550
N=int(input()) a=list(map(int,input().split())) count_color=[0]*8 wild_color=0 for i in range (N): if a[i]<400: count_color[0]=1 elif a[i]<800: count_color[1]=1 elif a[i]<1200: count_color[2]=1 elif a[i]<1600: count_color[3]=1 elif a[i]<2000: count_color[4]=1 ...
s179845478
p03695
u599547273
1533403128
Python
Python (3.4.3)
py
Runtime Error
18
2940
243
n = int(input()) a = map(int, input().split(" ")) color_types = [False]*8 pro_count = 0 for a_i in a: if a_i < 3200: color_types[a_i//400] = True else: pro_count += 1 print(max(1, sum(color_types)), min(8, sum(color_types)+pro_count))
s137251458
p03695
u599547273
1533403066
Python
Python (3.4.3)
py
Runtime Error
18
3064
262
n = int(input()) a = map(int, input().split(" ")) color_types = [False]*8 pro_count = 0 for a_i in a: if a_i < 3200: color_types[a_i//400] = True else: pro_count += 1 print(color_types) print(sum(max(1, color_types)), min(8, sum(color_types)+pro_count))
s646594827
p03695
u599547273
1533402261
Python
Python (3.4.3)
py
Runtime Error
17
3060
233
n = int(input()) a = map(int, input().split(" ")) color_types = [False]*7 pro_count = 0 for a_i in a: if a_i < 3200: color_types[a_i//400] = True else: pro_count += 1 print(sum(color_types), min(8, sum(color_types)+pro_count))
s922221053
p03695
u599547273
1533402162
Python
Python (3.4.3)
py
Runtime Error
17
2940
200
n = int(input()) a = tuple(map(int, input().split(" "))) color_types = [False]*7 pro_count = 0 if a < 3200: color_types[a//400] = True else: pro_count += 1 print(min(8, sum(color_types)+pro_count))
s167053222
p03695
u631277801
1533231913
Python
Python (3.4.3)
py
Runtime Error
17
3064
237
N = int(input()) A = list(map(int, input().split())) p_num = [0]*9 for a in A: p_num[a//400] += 1 ans = 0 for p in p_num[:-1]: if p: ans +=1 ans_min = ans ans_max = ans + p_num[-1] print(ans_min, ans_max)
s259340499
p03695
u698479721
1530115092
Python
Python (3.4.3)
py
Runtime Error
17
3064
279
import sys N = int(input()) r = list(map(int, input().split())) if min(r) >= 3200: print(str(1)+' '+str(N)) sys.exit() li = [0 for i in range(9)] for rates in r: n = rates//400 li[n] += 1 p = 0 for nums in li[0:8]: if nums !=0: p += 1 print(str(p)+' '+str(p+li[8]))
s085085450
p03695
u140251125
1530099061
Python
Python (3.4.3)
py
Runtime Error
17
3064
628
# input N = int(input()) A = list(map(int, input().split())) count = [0, 0, 0, 0, 0, 0, 0, 0, 0] for i in range(N): if A[i] < 400: count[0] = 1 elif A[i] < 800: count[1] = 1 elif A[i] < 1200: count[2] = 1 elif A[i] < 1600: count[3] = 1 elif A[i] < 2000: coun...
s142850714
p03695
u787562674
1529839858
Python
Python (3.4.3)
py
Runtime Error
20
3316
352
from collections import Counter N, K = map(int, input().split()) input_list = [[int(i) for i in input().split()] for j in range(N)] input_list.sort() input_counter = Counter() for element in input_list: input_counter[element[0]] += element[1] for element in input_list: K -= element[1] if K <= 0: ...
s342150175
p03695
u029169777
1529298352
Python
Python (3.4.3)
py
Runtime Error
18
3188
848
N=int(input()) flag=[0]*8 a=list(map(int,input().split())) count=0 for i in range(N): if 1<=a[i]<=399: flag[0]=1 if 400<=a[i]<=799: flag[1]=1 if 800<=a[i]<=1199: flag[2]=1 if 1200<=a[i]<=1599: flag[3]=1 if 1600<=a[i]<1999: flag[4]=1 if 2000<=a[i]<2399: flag[5]=1 if 2400<=a[i]<2799: flag[6]=...
s493049913
p03695
u503901534
1524806318
Python
Python (3.4.3)
py
Runtime Error
17
3064
833
l = [0,0,0,0,0,0,0,0,0] n = int(input()) a = list(map(int,input().split())) for i in range(len(a)): if 1 <= a[i] <= 399: l[0] = l[0] + 1 elif 400 <= a[i] <= 799: l[1] = l[1] + 1 elif 800 <= a[i] <= 1199: l[2] = l[2] + 1 elif 1200 <= a[i] <= 1599: l[3] = l[3] + 1 ...
s043549599
p03695
u856232850
1524469394
Python
Python (3.4.3)
py
Runtime Error
17
2940
227
for i in range(n): b.append(a[i]//400) for i in range(13): if b.count(i) >=1: if i<= 7: countmax +=1 countmin +=1 else: countmax += b.count(i) print(countmin,countmax)
s673136775
p03695
u424967964
1522964510
Python
Python (3.4.3)
py
Runtime Error
17
3060
310
n = int(input()) a = list(map(int, input().split())) b = [0 for i in range(4800//400)] for i in a: b[i//400] += 1; t = 0 ans = 0 for i in range(4800//400): if b[i] > 0: if i < 3200//400: ans+=1 else: t+=b[i] if ans > 0: print(ans,t+ans) else: print(1,t)
s727130840
p03695
u123756661
1521518341
Python
Python (3.4.3)
py
Runtime Error
20
3064
229
n=int(input()) l=[int(i) for i in input().split()] cnt=[0]*9 ans=0 for i in l: if i>3199: i=3200 cnt[i//400]+=1 for p in range(n-1): i=cnt[p] if i!=0: ans+=1 print(ans if ans!=0 else 1,ans+cnt[-1])
s879839036
p03695
u123756661
1521518222
Python
Python (3.4.3)
py
Runtime Error
17
3064
258
n=int(input()) n,k=map(int,input().split()) l=[int(i) for i in input().split()] cnt=[0]*9 ans=0 for i in l: if i>3199: i=3200 cnt[i//400]+=1 for p in range(n-1): i=cnt[p] if i!=0: ans+=1 print(ans if ans!=0 else 1,ans+cnt[-1])
s807603734
p03695
u562016607
1519889966
Python
Python (3.4.3)
py
Runtime Error
17
2940
194
N=int(input()) a=[int(i)//400 for i in input().split()] s=set() r=0 for i in range(N): if a[i]==7: r+=1 else: s.add(a[i]) print("{0} {1}".format(min([1,len(s)]),len(s)+r)
s690382442
p03695
u925364229
1517582047
Python
Python (3.4.3)
py
Runtime Error
18
3064
358
N = int(input()) a = list(map(int,input().split(" "))) free = 0 arr = [0] * 8 for i in a: limit = 400 while (limit <= 3200): if i < limit: arr[(limit // 400)-1] += 1 break else: limit += 400 if limit== 3600: free += 1 color = 0 for i in arr: if i > 0: color += 1 print(str(max(1,str(color))...
s559844147
p03695
u925364229
1517581998
Python
Python (3.4.3)
py
Runtime Error
18
3064
353
N = int(input()) a = list(map(int,input().split(" "))) free = 0 arr = [0] * 8 for i in a: limit = 400 while (limit <= 3200): if i < limit: arr[(limit // 400)-1] += 1 break else: limit += 400 if limit== 3600: free += 1 color = 0 for i in arr: if i > 0: color += 1 print(max(1,str(color)) + "...
s672403913
p03695
u754651673
1514217322
Python
Python (3.4.3)
py
Runtime Error
17
2940
1107
#include <iostream> #include <cstdio> #include <cmath> #include <algorithm> #include <vector> #include <numeric> #define rep(i, m, n) for(int i = m;i < n;i++) #define repr(i, m, n) for(int i = m;i >= n;i--) #define SORT(v, n) sort(v, v+n); #define INF 999999999 using namespace std; int main(){ int n; cin >> n; ...
s580927469
p03695
u559651225
1506808224
Python
Python (2.7.6)
py
Runtime Error
13
2820
310
n = input() a = map(int, raw_input().split()) color = [0 for _ in range(9)] for item in a: i = item / 400 i = max(i, 8) color[i] += 1 ans = 0 for num in color[0:8]: if num != 0: ans += 1 min_ans = max(ans, 1) max_ans = ans + color[8] max_ans = min(max_ans, 9) print min_ans, max_ans
s874774578
p03695
u559651225
1506808085
Python
Python (2.7.6)
py
Runtime Error
12
2568
292
n = input() a = map(int, raw_input().split()) color = [0 for _ in range(9)] for item in a: i = item / 400 color[i] += 1 ans = 0 for num in color[0:8]: if num != 0: ans += 1 min_ans = ans max_ans = ans + color[8] max_ans = max(min(max_ans, 9), 1) print min_ans, max_ans
s497253287
p03695
u665415433
1505272438
Python
Python (3.4.3)
py
Runtime Error
17
3064
669
N = int(input()) a = [int(i) for i in input().split()] rank = [0]*9 ans = [0]*2 for i in range(len(a)): if a[i] < 400: rank[0] = 1 elif a[i] < 800: rank[1] = 1 elif a[i] < 1200: rank[2] = 1 elif a[i] < 1600: rank[3] = 1 elif a[i] < 2000: rank[4] = 1 elif a...
s571102233
p03695
u449998745
1504510315
Python
Python (3.4.3)
py
Runtime Error
17
3064
686
n=int(input()) pr=list(map(int,input().split())) rate_color=[] suge=0 for i in range(n): if pr[i]>=3200: suge+=1 def cl(x): if x<=399: return [0] elif 400<=x<=799: return [1] elif 800 <=x<=1199: return [2] elif 1200 <=x<=1599: return [3] elif 1600<=x<= 199...
s663640852
p03695
u343437894
1499641900
Python
Python (3.4.3)
py
Runtime Error
17
3064
817
n = int(input()) a = list(map(int, input().split(" "))) colors=[] if list(filter(lambda x:x<3200, a)): f=lambda x:x<400 colors.append(1 if list(filter(f, a)) else 0) f=lambda x:400<=x<800 colors.append(1 if list(filter(f, a)) else 0) f=lambda x:800<=x<1200 colors.append(1 if list(filter(f, a)) ...
s161787055
p03695
u846372029
1498772291
Python
Python (3.4.3)
py
Runtime Error
17
2940
284
#Colorful Leaderboard import numpy as np n = int(input()) a = np.array(list(map(int, input().split()))) b = sorted (a//400) cnt = 0 for i in range(len(b)):s if b[i] < 8: None else: b[i]+=i cnt+=1 c = len(list(set(b))) print(str(c-cnt) + " " + str(c))
s302781833
p03695
u846372029
1498772223
Python
Python (3.4.3)
py
Runtime Error
17
2940
301
#Colorful Leaderboard import numpy as np import math as m n = int(input()) a = np.array(list(map(int, input().split()))) b = sorted (a//400) cnt = 0 for i in range(len(b)):s if b[i] < 8: None else: b[i]+=i cnt+=1 c = len(list(set(b))) print(str(c-cnt) + " " + str(c))
s913977813
p03695
u645409094
1498026045
Python
Python (3.4.3)
py
Runtime Error
17
2940
719
import numpy as np n=input() n=int(n) a=input().split() b=np.zeros(n) div=0 num_8=0 for i in range(n): a[i]=int(a[i]) if a[i]<=399 and a[i]>=1: b[i]=0 elif a[i]>=400 and a[i]<=799: b[i]=1 elif a[i]>=800 and a[i]<=1199: b[i]=2 elif a[i]>=1200 and...
s216021301
p03695
u645409094
1498025811
Python
Python (3.4.3)
py
Runtime Error
17
2940
719
import numpy as np n=input() n=int(n) a=input().split() b=np.zeros(n) div=0 num_8=0 for i in range(n): a[i]=int(a[i]) if a[i]<=399 and a[i]>=1: b[i]=0 elif a[i]>=400 and a[i]<=799: b[i]=1 elif a[i]>=800 and a[i]<=1199: b[i]=2 elif a[i]>=1200 and...
s027432457
p03695
u812803774
1497843175
Python
Python (3.4.3)
py
Runtime Error
18
3064
1115
number = int(input()) rate = [int(i) for i in input().split()] # In[7]: counter = {} for r in rate: if 1 <= r < 400: counter["grey"] = counter.get("grey", 0) + 1 if 400 <= r < 800: counter["brown"] = counter.get("brown", 0) + 1 if 800 <= r < 1200: counter["green"] = counter.get("g...
s427805373
p03695
u812803774
1497843061
Python
Python (3.4.3)
py
Runtime Error
17
3064
1115
number = int(input()) rate = [int(i) for i in input().split()] # In[7]: counter = {} for r in rate: if 1 <= r < 400: counter["grey"] = counter.get("grey", 0) + 1 if 400 <= r < 800: counter["brown"] = counter.get("brown", 0) + 1 if 800 <= r < 1200: counter["green"] = counter.get("g...
s619796356
p03695
u216954900
1497811274
Python
Python (2.7.6)
py
Runtime Error
10
2568
390
import sys if __name__ == "__main__": N = int(input()) rates = [map(int, raw_input().split()) for i in range(N)] # tasks = np.array(tasks) normal_colors = int(3200/400) colors = [None] * normal_colors any = 0 for rate in rates: if rate >= 3200: any +=1 else: ...
s345312071
p03695
u580225095
1497798164
Python
Python (3.4.3)
py
Runtime Error
18
3064
1154
# -*- coding: utf-8 -*- #レート 1-399:灰色 :gray #レート 400-799:茶色 :brown #レート 800-1199:緑色 : green #レート 1200-1599:水色 :skyblue #レート 1600-1999:青色 :blue #レート 2000-2399:黄色 :yellow #レート 2400-2799:橙色 :orange #レート 2800-3199:赤色 :red x = int(input()) y = input().split() gray = 0 brown = 0 green = 0 skyblue = 0 blue = 0 yellow = 0 o...
s158415622
p03695
u844789719
1497753005
Python
Python (3.4.3)
py
Runtime Error
17
3064
326
N = input() a = [int(int(i)/400) for i in input().split()] scores = [0,0,0,0,0,0,0,0] score8 = 0 for i,v in enumerate(a): if v > 7: score8 += 1 else: scores[i] = 1 score1to7 = sum(scores) saidai = min(score1to7 + score8, 8) saisho = min(max(score1to7, score8), 8) print(str(saisho) + " " + str(sa...
s420932127
p03695
u844789719
1497752910
Python
Python (3.4.3)
py
Runtime Error
20
3316
335
N = input() a = [int(int(i)/400) for i in input().split()] print(a) scores = [0,0,0,0,0,0,0,0] score8 = 0 for i,v in enumerate(a): if v > 7: score8 += 1 else: scores[i] = 1 score1to7 = sum(scores) saidai = min(score1to7 + score8, 8) saisho = min(max(score1to7, score8), 8) print(str(saisho) + " "...
s238903990
p03695
u125337618
1497714184
Python
Python (3.4.3)
py
Runtime Error
17
3064
662
def hantei(num): if num>0 and num<400: return 1 elif num>=400 and num<800: return 2 elif num>=800 and num<1200: return 3 elif num>=1200 and num<1600: return 4 elif num>= 1600 and num<2000: return 5 elif num>=2000 and num<2400: return 6 elif num...
s635977840
p03695
u833990553
1497664705
Python
Python (2.7.6)
py
Runtime Error
10
2568
231
N=input() nlist= [int(l) for l in raw_input().split(' ')] rate= [0,0,0,0,0,0,0] max = 0 for n in nlist: if n/400>=8: max += 1 else: rate[n/400]=1 print(sum(rate)), if sum(rate)+max > 8: print(8) else: print(sum(rate)+max)
s591882507
p03695
u833990553
1497664612
Python
Python (2.7.6)
py
Runtime Error
11
2820
223
N=input() nlist= [int(l) for l in raw_input().split(' ')] rate= [0,0,0,0,0,0,0] max = 0 for n in nlist: if n/400>=8: max += 1 rate[n/400]=1 print(sum(rate)), if sum(rate)+max > 8: print(8) else: print(sum(rate)+max)
s725698920
p03695
u870092796
1497389878
Python
Python (3.4.3)
py
Runtime Error
17
3060
285
N=input() A=list(map(int,input().split())) Rate=[] for i in range(9): Rate.append(0) for i in A: index=i/400 if index>8: index=8 Rate[index]=Rate[index]+1 a=0 for i in range(8): if Rate[i]>0: a=a+1 Max=a+Rate[8] Min=min(a,1) print(Min, Max)
s157231729
p03695
u351527281
1497380993
Python
Python (3.4.3)
py
Runtime Error
17
3064
429
n = input() a = [int(num) for num in input().split()] colors = [0 for i in range(8)] borders = [1,400,800,1200,1600,2000,2400,2800,3200] alpha = 0 for i in a: for j in range(1,n): if borders[j-1]<=i<borders[j]: colors[j-1] = 1 break if i>3200: alpha +=1 col_min = colors.c...
s565412818
p03695
u523153297
1497326163
Python
Python (3.4.3)
py
Runtime Error
18
3064
829
N=int(input()) a=[int(i) for i in input().split()] color=[0,0,0,0,0,0,0,0] alles=0 for i in range(N) : if a[i]<400 : color[0]+=1 elif a[i]<800 : color[1]+=1 elif a[i]<1200 : color[2]+=1 elif a[i]<1600 : color[3]+=1 elif a[i]<2000 : color[4]+=1 eli...
s734317797
p03695
u622011073
1497312585
Python
Python (3.4.3)
py
Runtime Error
17
2940
273
a=[0]*9;input() for x in list(map(int,input().split())):a[x//400]=1 if x<3200 else a[8]+1 b=sum(a[:8]);print(b,b*(b in[0,8])ora=[0]*9;input() for x in list(map(int,input().split())): if x<3200:a[x//400]=1 else:a[8]+=1 b=sum(a[:8]);print(b,b*(b==8)or b+a[8]) b+a[8])
s497742865
p03695
u622011073
1497312512
Python
Python (3.4.3)
py
Runtime Error
17
3060
134
a=[0]*9;input() for x in list(map(int,input().split())):a[x//400]=1 if x<3200 else a[8]+1 b=sum(a[:8]);print(b,b*(b in[0,8])or b+a[8])
s326771606
p03695
u622011073
1497239659
Python
Python (3.4.3)
py
Runtime Error
17
3060
144
a=[0]*9;input() for x in list(map(int,input().split())): if x<3200:a[x//400]=1 else:a[x//400]+=1 b=sum(a[:8]);print(b,b*(b==8)or b+a[8])
s037717113
p03695
u622011073
1497239418
Python
Python (3.4.3)
py
Runtime Error
17
3060
148
a=[0]*9;input() for x in list(map(int,input().split())): if x<3200:a[x//400]=1 else:a[x//400]+=1 b=sum(a[:8]);print((b,b)*(b==8)or b,b+a[8])
s123579273
p03695
u606174760
1497226894
Python
Python (3.4.3)
py
Runtime Error
18
3064
454
# -*- coding: utf-8 -*- import sys N = input() an = input() lit = sorted(map(int, an.split())) color = {} for i in range(400, 3199, 399): color[i] = filter(lambda x: i-400 < x <i , lit) color[3200] = filter(lambda x: x>=3200, lit) c = len(color) if color.has_key(3200): c -= - 1 if c >= 8: print('8 8') e...
s294873878
p03695
u840684628
1497224407
Python
Python (3.4.3)
py
Runtime Error
18
3064
1072
N = int(input()) a = [int(n) for n in input().split()] a = sorted(a) colors = [0,0,0,0,0,0,0,0] free = 0 for i in a: if i < 400: colors[0] = 1 elif i < 800: colors[1] = 1 elif i < 1200: colors[2] = 1 elif i < 1600: colors[3] = 1 elif i < 2000: colors[4] = 1 ...
s638082268
p03695
u116142267
1497200335
Python
Python (3.4.3)
py
Runtime Error
18
3064
304
N = int(input()) a = list(map(int, input().split())) flag = [0]*9 ans = 0 ans_max =0 for i in range(N): num = a[i]//400 if num>=8: flag[num]+=1 else: flag[num]=1 ans = sum(flag[:-1]) if ans + flag[8]>=8: ans_sum = 8 else: ans_sum= ans+flag[8] print(ans, ans_sum)
s528962149
p03695
u116142267
1497199964
Python
Python (3.4.3)
py
Runtime Error
18
3064
304
N = int(input()) a = list(map(int, input().split())) flag = [0]*9 ans = 0 ans_max =0 for i in range(N): num = a[i]//400 if num>8: flag[num]+=1 else: flag[num]=1 ans = sum(flag[:-1]) if flag[8]>8: ans_sum = ans + 8 else: ans_sum = ans + flag[8] print(ans, ans_sum)
s030738052
p03695
u116142267
1497199553
Python
Python (3.4.3)
py
Runtime Error
17
3064
304
N = int(input()) a = list(map(int, input().split())) flag = [0]*9 ans = 0 ans_max =0 for i in range(N): num = int(a[i]/400) flag[num]+=1 for i in range(len(flag)-1): if flag[i]>=1: ans += 1 if flag[8]>8: ans_sum = ans + 8 else: ans_sum = ans + flag[8] print(ans, ans_sum)
s823503676
p03695
u116142267
1497199122
Python
Python (3.4.3)
py
Runtime Error
17
3064
304
N = int(input()) a = list(map(int, input().split())) flag = [0]*9 ans = 0 ans_max =0 for i in range(N): num = int(a[i]/400) flag[num]+=1 for i in range(len(flag)-1): if flag[i]>=1: ans += 1 if flag[8]>8: ans_sum = ans + 8 else: ans_sum = ans + flag[8] print(ans, ans_sum)
s189568533
p03695
u054556734
1497157992
Python
Python (3.4.3)
py
Runtime Error
17
3064
441
n=int(input()) aa=map(int,input().split()) aa=list(aa) memo=[] count=0 for a in aa: if a<400:memo.append(1) elif a<800:memo.append(2) elif a<1200:memo.append(3) elif a<1600:memo.append(4) elif a<2000:memo.append(5) elif a<2400:memo.append(6) elif a<2800:memo.append(7) elif a<3200:memo.ap...
s490480814
p03695
u191214791
1497156647
Python
Python (3.4.3)
py
Runtime Error
17
3064
345
input() rates = sorted([int(x) for x in input().split()]) counts = [] for boundary in [399, 799, 1199, 1599, 1999, 2399, 2799, 3199]: counts.append(1 if rates[0] <= boundary else 0) rates = [rate for rate in rates if rate > boundary] higher = len(rates) least = sum(counts) print("{} {}".format(1 if least == 0 e...
s086335325
p03695
u191214791
1497155408
Python
Python (3.4.3)
py
Runtime Error
17
3064
379
boundaries = [399, 799, 1199, 1599, 1999, 2399, 2799, 3199, 4800] input() rates = sorted([int(x) for x in input().split()]) counts = [] for boundary in boundaries: tmp = 0 while rates[0] <= boundary: tmp += 1 rates.pop(0) counts.append(tmp) least = sum([x > 0 for x in counts[:-1]]) print("{}...
s396757773
p03695
u341926204
1497154559
Python
Python (3.4.3)
py
Runtime Error
17
2940
263
def c(): n = int(input()) a = list(map(int, input().split())) l = list(map(lambda i: min(8, i//400), a)) over_rate = l.count(8) res = set(l) try: res.remove(8) mi = max(1, len(res)) ma = len(res) + over_rate print(mi, ma) c()
s713699872
p03695
u341926204
1497154497
Python
Python (3.4.3)
py
Runtime Error
17
2940
259
def c(): n = int(input()) a = list(map(int, input().split())) l = list(map(lambda i: min(8, i//400), a)) over_rate = l.count(8) res = set(l) try: res.remove(8) mi = max(1, len(res)) ma = len(res) + over_rate print(mi, ma)
s177126613
p03695
u785205215
1497154235
Python
Python (3.4.3)
py
Runtime Error
17
3064
398
n = int(input()) a = input().split() a_int = list(map(int,a)) col = 400 all_col = 0 c= [0,0,0,0,0,0,0,0] for i in range(n): if a_int[i] > 8 * col: all_col += 1 else: ii = int(a_int[i]/col) if c[ii] < 1: c[ii] += 1 cnt = c.count(1) min_c = max(cnt, 1) max_c = min_c +...
s309671670
p03695
u785205215
1497154173
Python
Python (3.4.3)
py
Runtime Error
18
3064
402
n = int(input()) a = input().split() a_int = list(map(int,a)) col = 400 all_col = 0 c= [0,0,0,0,0,0,0,0] for i in range(n): if a_int[i] > max_c * col: all_col += 1 else: ii = int(a_int[i]/col) if c[ii] < 1: c[ii] += 1 cnt = c.count(1) min_c = max(cnt, 1) max_c = min...
s142050277
p03695
u785205215
1497153810
Python
Python (3.4.3)
py
Runtime Error
17
3064
355
n = int(input()) a = input().split() a_int = list(map(int,a)) col = 400 all_col = 0 max_c = 8 c= [0,0,0,0,0,0,0,0] for i in range(n): if a_int[i] > max_c * col: all_col += 1 else: ii = int(a_int[i]/col) if c[ii] < 1: c[ii] += 1 cnt = c.count(1) min_c = max(cnt, 1) ...
s188105665
p03695
u785205215
1497153613
Python
Python (3.4.3)
py
Runtime Error
17
2940
324
n = int(input()) a = input().split() a_int = list(map(int,a) col = 400 all_col = 0 max_c = 8 for i in range(n): if a_int > max_c * col: all_col += 1 else: ii = int(a_int/col) if c[ii] < 1 c[ii] += 1 cnt = c.count(1) min_c = max(cnt, 1) print(str(min_c)+' ' +str(max...
s372377028
p03695
u405779580
1497152218
Python
Python (3.4.3)
py
Runtime Error
20
3316
185
from collections import Counter input() c = Counter([min(int(i)//400,8) for i in input().split()]) lt3200 = [bool(c[i]) for i in range(8)].count(True) print(max(1, lt3200), lt3200+d[8])
s509884397
p03695
u405779580
1497152037
Python
Python (3.4.3)
py
Runtime Error
21
3316
235
from collections import Counter input() scores = [min(int(i)//400, 8) for i in input().split()] c = Counter([min(int(i)//400,8) for i in input().split()]) lt3200 = [bool(i) for i in c[:8]].count(True) print(max(1, lt3200), lt3200+d[8])
s225161514
p03695
u584459098
1497150780
Python
Python (3.4.3)
py
Runtime Error
17
3064
771
N = int(input()) a = list(map(int, input().split())) gray = 0 brown = 0 green = 0 sky = 0 blue = 0 yellow = 0 orange = 0 red = 0 god = 0 for i in range(N): if a[i] < 400: gray = 1 elif a[i] < 800: brown = 1 elif a[i] < 1200: green = 1 elif a[i] < 1600: sky = 1 elif a[...
s585668060
p03695
u584459098
1497150422
Python
Python (3.4.3)
py
Runtime Error
17
2940
944
N = int(input()) a = list(map(int, input().split())) gray = 0 brown = 0 green = 0 sky = 0 blue = 0 yellow = 0 orange = 0 red = 0 god = 0 for i in range(N): if a[i] < 400: gray = 1 elif a[i] < 800: brown = 1 elif a[i] < 1200:...
s869143578
p03695
u584459098
1497149942
Python
Python (3.4.3)
py
Runtime Error
17
2940
1086
N = int(input()) a = list(map(int, input().split())) gray = 0 brown = 0 green = 0 sky = 0 blue = 0 yellow = 0 orange = 0 red = 0 god = 0 for i in range(N-1): if a[i] < 400: gray = True elif a[i] < 800: brown = True elif a[i]...
s828432801
p03695
u612721349
1497149306
Python
PyPy3 (2.4.0)
py
Runtime Error
175
38416
124
l=[0]*13 input() for i in input().split():;l[int(i)//400]+=1 r=sum([1 for a in l[:8] if a > 0]) print(max(1,r),r+sum(l[8:]))
s177421676
p03695
u612721349
1497149263
Python
PyPy3 (2.4.0)
py
Runtime Error
165
38256
139
cat ABC064C.py l=[0]*13 input() for i in input().split():;l[int(i)//400]+=1 r=sum([1 for a in l[:8] if a > 0]) print(max(1,r),r+sum(l[8:]))
s357332805
p03695
u612721349
1497149200
Python
PyPy3 (2.4.0)
py
Runtime Error
293
38384
124
l=[0]*13 input() for i in input().split(): l[int(i)//400]+=1 r=sum([1 for a in l[:8] if a > 0]) print(max(1,r,r+sum(l[8:])
s573228758
p03695
u584459098
1497148799
Python
Python (3.4.3)
py
Runtime Error
17
3064
995
N = int(input()) a = list(map(int, input().split())) gray = 0 brown = 0 green = 0 sky = 0 blue = 0 yellow = 0 orange = 0 red = 0 god = 0 for i in range(N-1): if a[i] < 400: gray = True elif a[i] < 800: brown = True elif a[i] < 1200: green = True elif a[i] < 1600: sky = Tr...
s159098318
p03695
u584459098
1497148753
Python
Python (3.4.3)
py
Runtime Error
17
3064
995
N = int(input()) a = list(map(int, input().split())) gray = 0 brown = 0 green = 0 sky = 0 blue = 0 yellow = 0 orange = 0 red = 0 god = 0 for i in range(N-1): if a[i] < 400: gray = True elif a[i] < 800: brown = True elif a[i] < 1200: green = True elif a[i] < 1600: sky = Tr...
s356204683
p03695
u119460590
1497148680
Python
Python (3.4.3)
py
Runtime Error
17
3064
501
import bisect n = int(input()) a = [int(i) for i in input().split()] target = 0 l = [399, 799, 1199, 1599, 1999, 2399, 2799, 3199] cnt = [0 for i in range(len(l))] for i in range(n): if a[i] >= 3200: target += 1 else: x = bisect.bisect(l, a[i]) # print ("value = " + str(a[i]) + ", x =...
s937459240
p03695
u768816323
1497148559
Python
Python (3.4.3)
py
Runtime Error
18
3064
317
N=int(input()) a=[int(i) for i in input(). split ()] b=[] for i in range(9): b.append(0) for i in range (N): if a[i]>=3200: b[8]+=1 else: j=a[i]//400 b[j]+=1 i=0 mi=0 while i<8: if b[i]>0: mi+=1 i+=1 ma=mi if b[8]>0: ma+=b[8] if ma>8: ma=8 print (mi+" "+ma)