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
s600219970
p03693
u812803774
1497843041
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...
s927466615
p03693
u965787958
1497834763
Python
Python (3.4.3)
py
Runtime Error
17
2940
101
r,g,b = map(int, raw_input().split()) x= r*100+ g*10* b if x%4 ==0: print("YES") else: print("NO")
s746033513
p03693
u216954900
1497811189
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: ...
s204519865
p03693
u844789719
1497759806
Python
Python (3.4.3)
py
Runtime Error
22
3316
456
import re def kezuru(str): if str.find('()') == -1: return str else: return kezuru(str.replace('()','')) n = input() str = input() kezutta = kezuru(str) #print('(' * len(re.search('\)+',kezutta).group(0)) + str + ')' * len(re.search('\(+',kezutta).group(0))) n1 = 0 m1 = re.search('\)+',kezutta)...
s421073619
p03693
u844789719
1497756778
Python
Python (3.4.3)
py
Runtime Error
20
3188
413
import re input() strorig = input() closeFirst = re.search('^\)*',strorig).group(0) openLast = re.search('\(*$',strorig).group(0) strModified = '(' * len(list(closeFirst)) + strorig + ')' * len(list(openLast)) nums = [-1 if i == '(' else 1 for i in list(strModified)] sumnums = sum(nums) if sumnums < 0: result = str...
s527581790
p03693
u709121282
1497747764
Python
Python (3.4.3)
py
Runtime Error
18
2940
121
l = raw_input().split(" ") num=int(l[0])*100+int(l[1])*10+int(l[2]) if num%4==0: print("YES") else: print("NO")
s269576497
p03693
u125337618
1497717195
Python
Python (3.4.3)
py
Runtime Error
17
3060
231
N=input() def waru(num): return int(num)//400 a = list(map(waru, input().split())) b = [] num = 0 for i in a: if i >= 8: b.append(i) minu = len(set(a)) - len(set(b)) if min==0: min = 1 print(minu, len(b)+minu)
s294294074
p03693
u125337618
1497716479
Python
Python (3.4.3)
py
Runtime Error
17
2940
185
N=input() def waru(num): return int(num)//400 a = list(map(waru, input().split())) num = 0 for i in a: num+=1 if i >= 8 else 0 min = len(set(a))-num+1 print(min, num+min)
s803934379
p03693
u580225095
1497713832
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
x = input().split() y = x[0] + x[1] + x[2] if y % 4 == 0: print("YES") else: print("NO")
s130152350
p03693
u425351967
1497703512
Python
Python (2.7.6)
py
Runtime Error
10
2568
105
r, g, b = [int(n) for n in input().split()] if 10*g+b % 4 == 0: print('YES') else: print('NO')
s120223388
p03693
u833990553
1497666802
Python
Python (2.7.6)
py
Runtime Error
12
2692
164
N=input() brac = raw_input() ans = brac while '()' in brac: brac=brac.replace('()','') left=brac.count('(') right=brac.count(')') print '('*right +ans +')'*left
s071207825
p03693
u829264360
1497554318
Python
Python (2.7.6)
py
Runtime Error
10
2568
127
n = input() houses = map(lambda x: int(x), raw_input().split()) houses = sorted(list(set(houses))) print houses[-1] - houses[0]
s195342082
p03693
u831747423
1497464728
Python
Python (2.7.6)
py
Runtime Error
11
2568
143
raw = raw_input().split(" ") num = int(raw[0]) * 100 + int(raw[1]) * 10 + int(raw[2]) if not (num % 4): return 'YES' else: return 'NO'
s576690357
p03693
u831747423
1497464199
Python
Python (2.7.6)
py
Runtime Error
10
2568
115
raw = raw_input().split(" ") num = raw[0] * 100 + raw[1] * 10 + raw[2] if not (num % 4): return "Yes" return "No"
s912216062
p03693
u831747423
1497456224
Python
Python (2.7.6)
py
Runtime Error
11
2568
74
raw = raw_input().sprit(" ") if not raw % 4: return "Yes" return "No"
s432326041
p03693
u831747423
1497456092
Python
Python (2.7.6)
py
Runtime Error
11
2568
60
raw = raw_input() if raw %= 4: return "Yes" return "No"
s542189947
p03693
u523153297
1497326452
Python
Python (3.4.3)
py
Runtime Error
17
3064
830
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...
s358015186
p03693
u203900263
1497315718
Python
Python (3.4.3)
py
Runtime Error
17
3064
550
N = int(input()) S = input() output = '' start = 0 end = 0 for i in S: if i == '(': if end > 0: output = '(' * end + output output += ')' * end end = 0 start += 1 output += i else: start += 1 output += i else: ...
s014084015
p03693
u860972915
1497239327
Python
Python (3.4.3)
py
Runtime Error
17
3060
257
n = int(input()) s = input() head = "" depth = 0 for i in s: if i == "(": depth += 1 else: if depth == 0: head += "(" else: depth -= 1 tail = "".join([")" for _ in range(depth)]) print(head + s + tail)
s448440929
p03693
u860972915
1497239207
Python
Python (3.4.3)
py
Runtime Error
17
2940
262
n = int(input()) s = input() head = "" depth = 0 for i in s: if i == "(": depth += 1 else: if depth == 0: head += "(" else: depth -= 1 tail = "".join([")" for _ in range(depth)]) print(head + s + tail)
s701015849
p03693
u494422867
1497224839
Python
Python (2.7.6)
py
Runtime Error
11
2568
190
N = int(raw_input()) S = raw_input() t = S print print S while S.count("()") != 0: S = S.replace("()", "") print S L = S.count("(") R = S.count(")") print L, R print "("*R+t+")"*L
s016913611
p03693
u606174760
1497223640
Python
Python (3.4.3)
py
Runtime Error
17
2940
153
# -*- coding: utf-8 -*- import sys args = sys.argv num = args[1] * 100 + args[2] * 10 + args[3] if num % 4 == 0: print('YES') else: print('NO')
s920662642
p03693
u606174760
1497223511
Python
Python (3.4.3)
py
Runtime Error
17
2940
132
# -*- coding: utf-8 -*- import sys args = sys.argv num = int(args.split()) if num % 4 == 0: print('YES') else: print('NO')
s231914498
p03693
u402189762
1497222487
Python
Python (3.4.3)
py
Runtime Error
18
2940
117
r=int(input()) g=int(input()) b=int(input()) x=int(r*100+g*10+b) if(x%4==0): print('YES') else: print("NO")
s802656306
p03693
u402189762
1497221833
Python
Python (3.4.3)
py
Runtime Error
18
2940
101
r=input() g=input() b=input() x=int(r*100+g*10+b) if(x%4==0): print('YES') else: print("NO")
s589111419
p03693
u552668967
1497156715
Python
Python (2.7.6)
py
Runtime Error
10
2568
202
from sys import stdin n = int(stdin.readline()) a = map(int,stdin.readline().split()) ans = set() co = 0 for i in a: if i < 3200: ans.add(i/400) else: co += 1 print max(1,len(ans)),len(ans) + co
s999380050
p03693
u426627397
1497156049
Python
Python (3.4.3)
py
Runtime Error
17
2940
95
N = int(input()) data = input().split() output = int(max(data)) - int(min(data)) print(output)
s584774919
p03693
u191214791
1497153343
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
input(); print((lambda xs: max(xs) - min(xs))([int(x) for x in input().split()]))
s457071775
p03693
u898143674
1497152910
Python
Python (3.4.3)
py
Runtime Error
16
2940
65
if (b * 10 + c) % 4 == 0: print('YES') else: print('NO')
s268947591
p03693
u191214791
1497152832
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
print("YES" if int("".join(input())) % 4 == 0 else "NO)
s466965601
p03693
u405779580
1497152282
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+c[8])
s755341080
p03693
u612721349
1497149297
Python
PyPy3 (2.4.0)
py
Runtime Error
170
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:]))
s884063852
p03693
u203414902
1497148983
Python
Python (3.4.3)
py
Runtime Error
17
3064
801
N=int(input()) a=map(int,input().split()) num=[0,0,0,0,0,0,0,0,0] counter=0 for i in a: if 1<=i and i<=399: num[0]+=1 elif 400 <= i and i <= 799: num[1] += 1 elif 800 <= i and i <= 1199: num[2] += 1 elif 1200 <= i and i <= 1599: num[3] += 1 elif 1600 <= i and i <= 1...
s860130779
p03693
u584459098
1497148782
Python
Python (3.4.3)
py
Runtime Error
17
3064
998
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...
s715460868
p03693
u875361824
1497148738
Python
Python (3.4.3)
py
Runtime Error
18
3064
956
def main(): # not use N _ = int(input().strip()) n_399 = 0 n_799 = 0 n_1199 = 0 n_1599 = 0 n_1999 = 0 n_2399 = 0 n_2799 = 0 n_3199 = 0 n_free = 0 rates = list(map(int, input().strip().split())) for r in rates: if r <= 399: n_399 = 1 elif r...
s105880183
p03693
u584459098
1497148207
Python
Python (3.4.3)
py
Runtime Error
18
3064
947
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 = int(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...
s682591265
p03693
u462661459
1497147994
Python
Python (3.4.3)
py
Runtime Error
17
2940
80
n=int(input()) a=list(map(int,input().split())) a.sort() print(a[len(a)-1]-a[0])
s434260048
p03693
u678875535
1497147909
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
#!/usr/bin/env python3 N = int(input()) a = list(map(int, input().split())) print(max(a) - min(a))
s932494569
p03693
u276192130
1497147794
Python
Python (3.4.3)
py
Runtime Error
21
3064
639
n = int(input()) a = list(map(int, input().split())) a.sort() color = [] other = 0 for i in a: if i < 400 * 1: color.append('1') elif i < 400 * 2: color.append('2') elif i < 400 * 3: color.append('3') elif i < 400 * 4: color.append('4') elif i < 400 * 5: colo...
s917096649
p03693
u712719923
1497147752
Python
Python (3.4.3)
py
Runtime Error
17
2940
199
def main(): s = raw_input().split(" ") s = int(s[0]*100) + int(s[1]*10) + int(s[2]) if s%4==0: print("YES") else: print("NO") if __name__ == "__main__": main()
s917931470
p03693
u046672878
1497147206
Python
Python (3.4.3)
py
Runtime Error
17
3188
1409
# -*- coding: utf-8 -*- """ Created on Sun Aug 28 21:42:33 2016 @author: you """ n = int(input()) a = list(map(int, input().split())) a.sort() colornum = 0 colorflag = [0,0,0,0,0,0,0,0] rainbow = 0 maxvalue = 0 minvalue = 0 for i in range(n): if colorflag[0] == 0 and a[i] < 400: colornum = colornum + 1 ...
s470279618
p03693
u029876051
1497147035
Python
Python (2.7.6)
py
Runtime Error
13
2568
74
N = input() a = map(int, raw_input().split()) a.sort() print a[-1] - a[0]
s782901635
p03693
u713627549
1497146737
Python
Python (3.4.3)
py
Runtime Error
17
3064
821
n = int(input()) a = list(int(i) for i in input().split()) hai = 0 tya = 0 midori = 0 mizu = 0 ao = 0 ki = 0 daidai = 0 aka = 0 niji = 0 mincolor = 0 maxcolor = 0 for i in range(n): if 1 <= a[i] and a[i] <=399: hai = 1 elif 400 <= a[i] and a[i] <= 799: tya = 1 elif 800 <= a[i] and a[i] <...
s680709552
p03693
u713627549
1497146632
Python
Python (3.4.3)
py
Runtime Error
18
3064
855
n = int(input()) a = list(int(i) for i in input().split()) hai = 0 tya = 0 midori = 0 mizu = 0 ao = 0 ki = 0 daidai = 0 aka = 0 niji = 0 mincolor = 0 maxcolor = 0 for i in range(n): if 1 <= a[i] and a[i] <=399: hai = 1 elif 400 <= a[i] and a[i] <= 799: tya = 1 elif 800 <= a[i] and a[i] <...
s609529855
p03693
u777207626
1497146367
Python
Python (3.4.3)
py
Runtime Error
17
3064
708
n = int(input()) a = [int(i) for i in input().split()] col = [0 for i in range(n)] cnt = 0 for i in range(n): if 1 <= a[i] <=399: col[i] = "b" elif 400<= a[i]<=799: col[i] = "c" elif 800<= a[i]<=1199: col[i] = "d" elif 1200<= a[i]<=1599: col[i] = "e" elif 1600<= a[i]<...
s251008979
p03693
u713627549
1497146284
Python
Python (3.4.3)
py
Runtime Error
18
3064
851
n = int(input()) a = list(int(i) for i in input().split()) hai = 0 tya = 0 midori = 0 mizu = 0 ao = 0 ki = 0 daigai = 0 aka = 0 niji = 0 mincolor = 0 maxcolor = 0 for i in range(n): if 1 <= a[i] and a[i] <=399: hai = 1 elif 400 <= a[i] and a[i] <= 799: tya = 1 elif 800 <= a[i] and a[i] <...
s471511666
p03693
u154904553
1497146179
Python
Python (3.4.3)
py
Runtime Error
17
3060
300
N=int(input()) a_n=[] a2_n=[] a_n = input().split(" ") count = 0 for i in range(N): if int(a_n[i])%400 < 8: a2_n.append(int(a_n[i])%400) else: count += 1 n_min = len(set(a2_n)) if n_min+count >= 8: n_max=8 else: n_max = n_min+count print(str(n_min)+" "+str(n_max))
s550054897
p03693
u785205215
1497145784
Python
Python (3.4.3)
py
Runtime Error
18
3064
748
# coding: utf-8 # Here your code ! n = int(input()) a = input().split() a_int = sorted(list(map(int,a ))) print(a_int) max_a = max(a_int) col = [0,0,0,0,0,0,0,0] all_col = 0 for i in range(len(a_int)): if a_int[i] < 400: col[0] += 1 elif a_int[i] < 800: col[1] += 1 elif a_int[i] < 1200: ...
s686987572
p03693
u226155577
1497145397
Python
Python (2.7.6)
py
Runtime Error
12
2568
43
print("YES"*(int(input()[::2])%4<1)or"NO")
s534090055
p03693
u190525112
1497145372
Python
Python (3.4.3)
py
Runtime Error
17
3064
462
inf=float('inf') N = int(input()) x = list(map(int, input().split())) a=[0]*8 b=0 for i in range(0,N): if x[i]>=3200: b +=1 for j in range(0,8): for i in range(0,N): if x[i]<400: a[j] +=1 x[i] = inf x[i] -= 400 zerox=0 mincolar=0 for i in a: if i==0: ...
s967276606
p03693
u190525112
1497145328
Python
Python (3.4.3)
py
Runtime Error
26
3064
442
N = int(input()) x = list(map(int, input().split())) a=[0]*8 b=0 for i in range(0,N): if x[i]>=3200: b +=1 for j in range(0,8): for i in range(0,N): if x[i]<400: a[j] +=1 x[i] = inf x[i] -= 400 zerox=0 mincolar=0 for i in a: if i==0: zerox +=1 ...
s380697018
p03693
u205803237
1497145278
Python
Python (3.4.3)
py
Runtime Error
17
3064
562
N = int(input()) A = input().split() b = [0]*8 c = 0 for a in A: a = int(a) if 1<=a<=399: b[0] += 1 elif 400<=a<=799: b[1] += 1 elif 800<=a<=1199: b[2] += 1 elif 1200<=a<=1599: b[3] += 1 elif 1600<=a<=1999: b[4] += 1 elif 2000<=a<=2399: b[5] +...
s095017815
p03693
u005155625
1497145088
Python
Python (2.7.6)
py
Runtime Error
10
2568
126
r,g,b = map( int, raw_input().split(" ")) number = 100* r + 10+ g + b if number %4 == 0: print "YES" else print "NO"
s861549113
p03693
u909304507
1497144824
Python
Python (3.4.3)
py
Runtime Error
17
3060
526
# coding: utf-8 def get_ln_inputs(): return input().split() def get_ln_int_inputs(): return list(map(int, get_ln_inputs())) def main(): get_ln_inputs() rates = get_ln_int_inputs() colors = list() for _ in range(8): colors.append(0) free_colors = 0 for rate in rates: ...
s005711840
p03693
u859491652
1497144644
Python
Python (3.4.3)
py
Runtime Error
18
3064
693
n = int(input()) A = list(map(int, input().split())) B = set() C = [] for i in A: if 1<= i <= 399: B.add("grey") elif 400 <= i <= 799: B.add("brown") elif 800 <= i <= 1199: B.add("green") elif 1200 <= i <= 1599: B.add("sky") elif 1600 <= i <= 1999: B.add("blue...
s863516468
p03693
u814762953
1497144644
Python
Python (3.4.3)
py
Runtime Error
17
3064
373
import math ranks = [False for i in range(8)] highs = 0 n = int(input()) inps = [int(i) for i in input().split()] highs = min(len([i for i in inps if i > 3199]), 8) inps = [i for i in inps if i <= 3199] for i in inps: ranks[math.floor(i/399)] = True lows = len([i for i in ranks if i == True]) minimum = max(lows...
s467639334
p03693
u016620620
1497143946
Python
Python (3.4.3)
py
Runtime Error
18
2940
111
number = int(input().split()) if (number[1] * 10 + number [2]) % 4 == 0: print("YES") else: print("NO")
s843668778
p03693
u626815045
1497143415
Python
Python (2.7.6)
py
Runtime Error
11
2568
92
N = int(raw_input()) a = map(int, raw_input().split()) mx = max(a) mn = min(a) print mx - mn
s998566511
p03693
u154904553
1497143189
Python
Python (3.4.3)
py
Runtime Error
17
2940
108
r,g,b = input().split(" ") if (int(r)*100+int(g)*10+int(b))%4==0 : print("YES") else : print("NO")
s892770420
p03693
u744898490
1497143151
Python
Python (3.4.3)
py
Runtime Error
17
2940
99
a= input().split(' ') b = a[0]+a[1]+a[2] if int(b) % 4 == 0: print('YES') else: print('NO'
s609126301
p03693
u722670579
1497143136
Python
Python (3.4.3)
py
Runtime Error
17
2940
136
nums=input() nums=nums.replace(" ","") nums=nums.replace(nums[0],"") nums=int(nums) if nums%4==0: print("YES") else: print("NO")
s063368698
p03693
u780709476
1497143035
Python
Python (3.4.3)
py
Runtime Error
17
2940
124
r, g, b = map(int, raw_input().split()) num = r * 100 + g * 10 + b if(num % 4 == 0): print("Yes") else: print("No")
s422862200
p03693
u016620620
1497143024
Python
Python (3.4.3)
py
Runtime Error
17
2940
108
number = int(input().split()) if (number[1] * 10 + number [2]) % 4 == 0: print(YES) else: print(NO)
s916533928
p03693
u626815045
1497142997
Python
Python (2.7.6)
py
Runtime Error
10
2568
114
a, b, c = = map(int, raw_input().split()) if (a * 100 + b * 10 + c) % 4 == 0: print "yes" else: print "no"
s180921617
p03693
u768951609
1497142960
Python
Python (2.7.6)
py
Runtime Error
10
2568
120
r,g,b=map(int,raw_input().split(' ')) if (r*100+g*10+b)%4==0: print "YES" else: print "NO"
s260814307
p03693
u886790158
1497142860
Python
Python (3.4.3)
py
Runtime Error
21
3316
107
r, g, b = list(map(int, input())) a = r*100+g*10+b if a % 4 == 0: print('Yes') else: print('No')
s360475335
p03694
u489959379
1600304922
Python
Python (3.8.2)
py
Runtime Error
22
9000
199
use proconio::*; use std::cmp::*; use std::vec::Vec; fn main() { input! { n: usize, mut A: [i32; n], } A.sort(); let res = A[n - 1] - A[0]; println!("{}", res); }
s397793235
p03694
u546853743
1599571012
Python
Python (3.8.2)
py
Runtime Error
22
9160
98
n=int(input()) for i in range(n): a=list(map(int,input().split())) a.sort() print(a[n-1]-a[0])
s093711709
p03694
u239368018
1599503381
Python
Python (3.8.2)
py
Runtime Error
24
9112
63
n = int(input()) A = list(input().split()) print(max(A)-min(A))
s665607956
p03694
u440478998
1599270690
Python
Python (3.8.2)
py
Runtime Error
25
9080
74
n = int(input()) a = [int(input()) for i in range(n)] print(max(a)-min(a))
s448229233
p03694
u705418271
1599021097
Python
Python (3.8.2)
py
Runtime Error
25
9016
74
n=int(input()) a=list(map(int,input().split())) a.sort() print(a[n-1]a[0])
s001344748
p03694
u265118937
1598674509
Python
Python (3.8.2)
py
Runtime Error
23
9044
68
n=int(input()) a=list(map(int,input().split())) print(max(a)-min(b))
s143292003
p03694
u244836567
1598573029
Python
Python (3.8.2)
py
Runtime Error
23
9088
77
a=input() a=int(a) b=list(map(int,input().split())) b.sort() print(b[a]-b[0])
s547902435
p03694
u975997984
1597707632
Python
Python (3.8.2)
py
Runtime Error
28
9064
126
N = int(input()) A = sorted(map(int, input().split())) A[0] = 0 d = 0 for i in range(1, N+1): d += A[i] - A[i-1] print(d)
s316052664
p03694
u823885866
1597116716
Python
Python (3.8.2)
py
Runtime Error
23
8992
451
import sys import math import itertools import collections import heapq import re import numpy as np from functools import reduce rr = lambda: sys.stdin.readline().rstrip() rs = lambda: sys.stdin.readline().split() ri = lambda: int(sys.stdin.readline()) rm = lambda: map(int, sys.stdin.readline().split()) rl = lambda: ...
s109816075
p03694
u642874916
1596471147
Python
Python (3.8.2)
py
Runtime Error
24
9148
70
N = int(input()) a = map(int, input().split()) print(max(a) - min(a))
s563899424
p03694
u786020649
1595813743
Python
Python (3.8.2)
py
Runtime Error
26
9080
70
n=int(input()) a=[int(input()) for _ in range(n)] print(max(a)-min(a))
s295781640
p03694
u062691227
1595702658
Python
Python (3.8.2)
py
Runtime Error
24
9168
66
_,*aa = map(int, open(1).read().split()) print(max(aa) - min(aa))
s034898421
p03694
u716660050
1595675498
Python
Python (3.8.2)
py
Runtime Error
21
9184
126
N=int(input()) a=list(set(list(map(int,input().split())))) ans=0 a.sort() for i in range(1,N): ans+=a[i]-a[i-1] print(ans)
s214581940
p03694
u325119213
1594991027
Python
Python (3.8.2)
py
Runtime Error
26
9044
113
def actual(N, A): return max(A) - min(A) N = int(input()) A = map(int, input().split()) print(actual(N, A))
s236302051
p03694
u492910842
1594767220
Python
PyPy3 (7.3.0)
py
Runtime Error
95
73948
63
n=int(input()) a=map(int,input().split())) print(max(a)-min(a))
s670796296
p03694
u870518235
1593553099
Python
Python (3.8.2)
py
Runtime Error
19
9156
85
# ABC064_B N = int(input()) A = [list(map(int,input().split()))] print(max(A)-min(A))
s545670509
p03694
u296160120
1592147260
Python
Python (3.4.3)
py
Runtime Error
17
2940
89
n = int(input()) l = list(map(int.input().split())) l.sort() print(abs(l[0]-l[len(l)-1]))
s188882282
p03694
u242031676
1591588323
Python
Python (3.4.3)
py
Runtime Error
17
2940
56
_,a=map(int,open(0).read().split());print(max(a)-min(a))
s848461917
p03694
u594956556
1591218790
Python
Python (3.4.3)
py
Runtime Error
17
2940
77
N = int(input()) a = list(map(int, input().split())).sort() print(a[-1]-a[0])
s825856555
p03694
u427984570
1590518570
Python
Python (3.4.3)
py
Runtime Error
17
2940
68
n = int(input()) l = map(int,input().split()) print(max(l) - min(l))
s343903711
p03694
u730710086
1589950192
Python
Python (3.4.3)
py
Runtime Error
17
2940
124
# -*- coding: <encoding name> -*- n = int(input()) a = list(map(int(), input().split())) A = sorted(a) print(A[-1] - A[0])
s504928189
p03694
u730710086
1589950062
Python
Python (3.4.3)
py
Runtime Error
17
2940
124
# -*- coding: <encoding name> -*- n = int(input()) a = list[map(int(), input().split())] A = sorted(a) print(A[-1] - A[0])
s012076110
p03694
u221888299
1589612806
Python
Python (3.4.3)
py
Runtime Error
17
3060
143
n = int(input()) a = sorted(set(list(map(int, input().split()))))[::-1] Length = 0 for i in range(n-2): Length += a[i]-a[i+1] print(Length)
s083295950
p03694
u551109821
1589324031
Python
Python (3.4.3)
py
Runtime Error
17
2940
82
N = int(input()) a = [int(input()) for _ in range(N)] a.sort() print(a[-1]-a[0])
s025075225
p03694
u165268875
1588819831
Python
Python (3.4.3)
py
Runtime Error
17
2940
133
N = int(input()) list = [] for i in range(N) : a = input() list.append(a) list.sort() print(int(list[N-1])-int(list[0]))
s588950010
p03694
u165268875
1588819695
Python
Python (3.4.3)
py
Runtime Error
17
2940
134
N = int(input()) list = [] for i in range(N) : a = input() list.append(a) list.sort() print(int(list[N-1])-int(list[0]))
s805286652
p03694
u165268875
1588819494
Python
Python (3.4.3)
py
Runtime Error
17
2940
121
N = int(input()) list = [] for i in range(N) : a = input() list.append(a) print(int(list[N-1])-int(list[0]))
s733307118
p03694
u165268875
1588819396
Python
Python (3.4.3)
py
Runtime Error
17
2940
119
N = int(input()) list = [] for i in range(N) : a = input() list.append(a) print(int(list[N])-int(list[0]))
s349754820
p03694
u165268875
1588819335
Python
Python (3.4.3)
py
Runtime Error
17
2940
122
N = int(input()) #家の数 list = [] for i in N : a = input() list.append(a) print(int(list[N])-int(list[0]))
s564737157
p03694
u073139376
1588809532
Python
Python (3.4.3)
py
Runtime Error
17
2940
70
N = int(input()) a = map(int, input().split()) print(max(a) - min(a))
s219920881
p03694
u073139376
1588809481
Python
Python (3.4.3)
py
Runtime Error
17
2940
77
N = int(input()) a = [int(input()) for _ in range(N)] print(max(a) - min(a))
s585925795
p03694
u523130469
1588264900
Python
PyPy3 (2.4.0)
py
Runtime Error
165
38640
128
n = int(input()) a = [*map(int, input().split())] a.sort() ans = 0 for i in range(n - 1): ans += a[i + 1] - a[i] print(ans)
s741464776
p03694
u839246671
1588204924
Python
Python (3.4.3)
py
Runtime Error
18
2940
73
N = int(input()) A = list(map(int, input().split())) print(max(N)-min(N))
s424392103
p03694
u764860452
1587915370
Python
PyPy3 (2.4.0)
py
Runtime Error
169
38256
173
import numpy as np N=int(input()) #A=np.array([map(int,input().split())]) A = np.array([int(i) for i in input().split()]) max_A=np.max(A) min_A=np.min(A) print(max_A-min_A)