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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s610208861 | p03694 | u486990800 | 1587154266 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 78 | N = int(input())
a = list(map(int, input().split()))
print(abs(max(a)-min(a)) |
s702836074 | p03694 | u852790844 | 1586576629 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 81 | n = int(input())
a = [map(int, input().split())]
ans = max(a) - min(a)
print(ans) |
s749693083 | p03694 | u141410514 | 1586298128 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 61 | n = input()
a = map(int,input().split())
print(max(a)-min(a)) |
s065746594 | p03694 | u021916304 | 1585546684 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 263 | def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
def ism():return map(str,input().split())
def isl():return list(map(str,input().split()))
n = ii()
A = set(sorted(iil()))
print(set[-1]-set[0])
|
s588911095 | p03694 | u964299793 | 1585178924 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 95 | x,y,z=map(int,input().split())
x-=2
ans=x//(y+z)
rem=x%(y+z)
if rem>=y:
ans+=1
print(ans)
|
s119110225 | p03694 | u697696097 | 1583814249 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 | n=int(input())
aa=map(int,input().split())
aa.sort()
d=0
for i in range(1,len(aa)):
d+=abs(aa[i]-aa[i-1])
print(d) |
s540796605 | p03694 | u408375121 | 1581973154 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 73 | N = int(input())
A = list(map(int, input()))
A.sort()
print(A[-1] - A[0]) |
s403852120 | p03694 | u212253038 | 1581351108 | Python | PyPy3 (2.4.0) | py | Runtime Error | 170 | 38256 | 61 | input()
l = [*map(int, input().split())]
print(max(l)-min(l)) |
s380836238 | p03694 | u361826811 | 1580410414 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 269 | """
author : halo2halo
date : 30, Jan, 2020
"""
import sys
import itertools
# import numpy as np
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
N,*A = map(int, readline().split())
A.sort()
print(A[-1]-A[0])
|
s832688231 | p03694 | u344959886 | 1579631212 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 73 | n=int(input())
a=list(map(int,input().split()))
a.sort()
print(a[n]-a[0]) |
s258273013 | p03694 | u840958781 | 1578871137 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 69 | n=int(input())
li=li(map(int,input().split()))
print(max(li)-min(li)) |
s647156578 | p03694 | u934978909 | 1577090749 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 190 | N=int(input())
listaMinimo=[]
maximo=0
while N>0:
ai=int(input())
if ai > maximo:
maximo=ai
listaMinimo.append(ai)
N-=1
minimo = min(listaMinimo)
print(maximo-minimo) |
s836332432 | p03694 | u183840468 | 1576684751 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3060 | 91 | n = int(input())
l = sorted(list({int(i) for i in input().split()}))
print(l[n-1] - l[0]) |
s134256312 | p03694 | u061912210 | 1576080266 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 73 | s = list(map(int,intput().split()))
s.sorted()
print(s[len(s)-1] - s[0]) |
s049900207 | p03694 | u061912210 | 1576080184 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 71 | s = list(map(int,intput().split()))
s.sort()
print(s[len(s)-1] - s[0]) |
s611823767 | p03694 | u061912210 | 1576080146 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 71 | s = list(map(int,intput().split()))
s.sorted
print(s[len(s)-1] - s[0]) |
s742683258 | p03694 | u061912210 | 1576080121 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 69 | s = list(map(int,intput().split()))
s.sort
print(s[len(s)-1] - s[0]) |
s788813658 | p03694 | u452015170 | 1574056184 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 59 | n
a = list(map(int, input().split()))
print(max(a)-min(a))
|
s806731452 | p03694 | u100418016 | 1573199957 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | arr = map(int,input().split(" "))
mx=arr(0)
mn=arr(0)
for a in srr:
if(mx<a):
mx=a
else if(mn>a):
mn=a
print(mx-mn) |
s159411463 | p03694 | u375282392 | 1572366055 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 113 | n = int(input())
a = list(map(int,input().split()))
mi = 0
for i in a:
mi = min(m,i)
ma = max(m,i)
print(ma-mi) |
s281546456 | p03694 | u756514276 | 1570801077 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 81 | N = int(input())
A = list(map(int, input().split()))
A.sort()
print(A[-1] - A[1]) |
s487499550 | p03694 | u910756197 | 1570558367 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3056 | 79 | n = int(input())
a = [int(input()) for _ in range(n)]
print(sorted(set(a))[-2]) |
s779489472 | p03694 | u146575240 | 1569807043 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 184 | # B - Traveling AtCoDeer Problem
N = int(input())
a = list(map(int, input().split()))
A = set(a)
A1 = sorted(A)
count = 0
for i in range(N-1) :
count += A1[i+1]-A1[i]
print(count) |
s370052003 | p03694 | u155687575 | 1568386003 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 98 | n = int(input())
alist = [int(input()) for _ in range(n)]
dis = max(alist) - min(alist)
print(dis) |
s111444347 | p03694 | u600402037 | 1567984632 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 76 | N = int(input())
A = list(map(int, input().split()))
print(max(A) - max(B)) |
s446561967 | p03694 | u518987899 | 1567139458 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 80 | _ = input()
a = list(map(int, input().strip().strip(' ')))
print(max(a)-min(a))
|
s223449230 | p03694 | u475675023 | 1567088714 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | n=int(input())
a=[int(input()) for _ in range(n)]
print(a[0] if len(a)==1 else max(a)-min(a)) |
s758279601 | p03694 | u475675023 | 1567088666 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 70 | n=int(input())
a=[int(input()) for _ in range(n)]
print(max(a)-min(a)) |
s974999034 | p03694 | u045408189 | 1566745641 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 53 | input()
x=map(int,input().split())
print(x[-1]-x[0])
|
s901027484 | p03694 | u045408189 | 1566745614 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 46 |
x=map(int,input().split())
print(x[-1]-x[0])
|
s000923787 | p03694 | u045408189 | 1566745515 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 46 | n=input()
x=input().split()
print(x[-1]-x[0])
|
s503513943 | p03694 | u045408189 | 1566745458 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 47 | n=input()
x=input().split()
print(x.[-1]-x.[0]) |
s845366571 | p03694 | u229333839 | 1566228542 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 68 | n=int(input())
a=list(map(int.input().split()))
print(max(a)-min(a)) |
s339511756 | p03694 | u229333839 | 1566228505 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 67 | n=int(input())
a=list(map(int,input().split())
print(max(a)-min(a)) |
s083760172 | p03694 | u229333839 | 1566228460 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 67 | n=int(input())
a=list(map(int.input().split())
print(max(a)-min(a)) |
s441209055 | p03694 | u296150111 | 1565055360 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 66 | n=int(input)
a=list(map(int,input().split()))
print(max(a)-min(a)) |
s895036655 | p03694 | u191635495 | 1563657654 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 74 | N = int(input())
a = list(map(int, input().split())
print(max(a) - min(a)) |
s520515418 | p03694 | u617659131 | 1562999809 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 67 | n = int(input())
a = map(int, input().split())
print(max(a)-min(a)) |
s236580093 | p03694 | u617659131 | 1562999767 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 66 | n = int(input())
a = map(int, input()split())
print(max(a)-min(a)) |
s482748657 | p03694 | u243699903 | 1561139502 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | n = int(input())
a_list = [int(i) for i in input().split()]
print(max[a_list] - min(a_list))
|
s560205247 | p03694 | u329058683 | 1559996530 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 66 | N=int(input)
L-list(map(int,input().split()))
print(max(L)-min(L)) |
s654670029 | p03694 | u298297089 | 1559784154 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 76 | N = input()
A = list(map(int, input().split()))
A.sort()
pritn(A[-1] - A[0]) |
s713807167 | p03694 | u509094491 | 1558731197 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 160 | a=int(input())
max=h[0]
min=h[0]
for i in a:
h[i]=int(input())
if max<h[i] :
max=h[i]
if min>h[i] :
min=h[i]
answer=max-min
print(answer)
|
s560693177 | p03694 | u278886389 | 1557332418 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 60 | input()
a = map(int,input().split(" "))
print(max(a)-min(a)) |
s697022057 | p03694 | u220345792 | 1556918803 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 64 | _
A = list(map(int, input().split()))
A.sort()
print(A[-1]-A[0]) |
s115800121 | p03694 | u980492406 | 1555557661 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 78 | n = int(input())
a = list(map(int,input().split())
a.sort()
print(a[n-1]-a[0]) |
s069204709 | p03694 | u185464141 | 1554410381 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 80 | n = map(int(input()))
a = list(map(int, input().split()))
print(max(a) - min(a)) |
s792924741 | p03694 | u185464141 | 1554410347 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 86 | n = map(int, input.split())
a = list(map(int, input().split()))
print(max(a) - min(a)) |
s036070655 | p03694 | u777028980 | 1554397692 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 78 | n=int(input())
hoge=list(map(int,input().split()))
print(max(hoge)-min()hoge) |
s680035757 | p03694 | u363610900 | 1553227358 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 154 | # -*- coding: utf-8 -*-
def main():
input()
a = map(int, input().split())
print(max(a) - min(a))
if __name__ == '__main__':
main() |
s043066443 | p03694 | u325264482 | 1553130674 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 77 | N = int(input())
A = [int(input()) for i in range(N)]
print(max(A) - min(A))
|
s358787004 | p03694 | u694810977 | 1552953159 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 73 | n = int(input())
a = list(map(int, input().split()))
print(max(a)-min(b)) |
s921927869 | p03694 | u694810977 | 1552953075 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 75 | n = int(input())
a = list(map(int, input().split()))
print(max(a) - min(b)) |
s352839305 | p03694 | u077019541 | 1552945793 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 81 | N = int(input())
an= sorted(set([input() for n in range(N)]))
print(an[-1]-an[0]) |
s924361167 | p03694 | u864667985 | 1551392512 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 155 | N = int(input())
a = sorted([int(input()) for _ in range(N)])
print(a[-1]-a[0N = int(input())
a = map(int, input().split())
a = sorted(a)
print(a[-1]-a[0]) |
s406615632 | p03694 | u864667985 | 1551392420 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 79 | N = int(input())
a = sorted([int(input()) for _ in range(N)])
print(a[-1]-a[0]) |
s431058448 | p03694 | u864667985 | 1551392388 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 79 | n = int(input())
a = sorted([int(input()) for _ in range(N)])
print(a[-1]-a[0]) |
s041773730 | p03694 | u928784113 | 1546744091 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 171 | N = int(input())
for i in range(N):
a = list(map(int,input().split()))
A = set(a)
B = sorted(A)
C = []
for i in range(len(A)):
C.append(B[i+1]-B[i])
print(sum(C)) |
s397095752 | p03694 | u928784113 | 1545062204 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 161 | N = int(input())
a = map(int,input().split())
L = []
M = []
for i in range(N):
L.append(a[i])
L.sort()
for i in range(N):
M.append(L[i+1]-L[i])
print(sum(M)) |
s075399331 | p03694 | u037098269 | 1542686229 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 98 | n = int(input())
home_list = input().split()
home_list.sort()
print(home_list[n-1] - home_list[0]) |
s719616654 | p03694 | u037098269 | 1542686172 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 98 | n = int(input())
home_list = input().split()
home_list.sort()
print(hpme_list[n-1] - home_list[0]) |
s544985903 | p03694 | u548624367 | 1541752987 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 71 | input()+(lambda a:print(max(a)-min(a)))(list(map(int,input().split()))) |
s933816644 | p03694 | u090225501 | 1541186433 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 60 | input()
a = map(int, input().split())
print(max(a) - min(a)) |
s788366528 | p03694 | u791664126 | 1540982054 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 64 | input();l=list(map(int,input().split()).sort();print(l[-1]-l[0]) |
s180167750 | p03694 | u240793404 | 1540933836 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 71 | n = int(input())
a = list(map(int,input().split()))
print(max(a)-min(a) |
s093446067 | p03694 | u853900545 | 1538346868 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 71 | n = int(input())
a = list(map(int,input.split()))
print(max(a)-min(a)) |
s365785241 | p03694 | u474270503 | 1535993332 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 64 | N=int(input())
A=map(int, input().split())
print(max(A)-min(A))
|
s361369737 | p03694 | u221345507 | 1529521114 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 75 | N=int(input())
a = [int(i) for i in input().split()]
print(max(a)-min(a)) |
s040016900 | p03694 | u985076807 | 1524091746 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 94 | loops = int(input())
LIST = [int(input()) for _ in range(loops)]
print(max(LIST) - min(LIST)) |
s394207951 | p03694 | u668726177 | 1523285100 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 67 | n = int(input())
a = map(int, input().split())
print(max(a)-min(a)) |
s842424382 | p03694 | u667024514 | 1520482896 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 73 | n = int(input())
lis = list(int,input().split())
print(max(lis)-min(lis)) |
s531072299 | p03694 | u562016607 | 1519888896 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 66 | n=int(input())
a=[i for i in input().split()]
print(max(a)-min(a)) |
s770396886 | p03694 | u975884051 | 1504997149 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 94 | N = int(input())
a = []
for i in range(N):
a.append(int(input()))
print(max(a) - min(a))
|
s820786922 | p03694 | u762008592 | 1503534600 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 78 | N=int(input())
a_n=[int(x) for i in input().split()]
print(max(a_n)-min(a_n)) |
s191866375 | p03694 | u697421413 | 1499641857 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 213 | nums = [0]
n = int(input())
nums *= n
nums = list(map(int,input().split()))
max = 0
min = 1000
for i in range(n):
if nums[i]<min:
min = nums[i]
if max<list[i]:
max = nums[i]
print(max-min)
|
s840409650 | p03694 | u418080290 | 1498162921 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 63 | input()
coords = input.split()
print(max(coords) - min(coords)) |
s770579578 | p03694 | u655464713 | 1498005857 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3188 | 126 | l = map(int, raw_input().split())
r = l[0]*100
g = l[1]*10
b = l[2]
if(r + g + b) % 4 == 0:
print "YES"
else:
print "NO" |
s498293988 | p03694 | u580225095 | 1497797124 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 198 | # -*- coding: utf-8 -*-
x = int(input())
#x = 8
y = input()
#y = ["3","1","4","1","5","9","2","6"]
for i in range(x):
y[i] = int(y[i])
Max = max(y)
Min = min(y)
ans = Max - Min
print(ans)
|
s109965349 | p03694 | u833990553 | 1497662108 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 55 | N=input()
a=raw_input().split(' ')
print(max(a)-min(a)) |
s996785953 | p03694 | u833990553 | 1497662091 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 45 | a=raw_input().split(' ')
print(max(a)-min(a)) |
s160056004 | p03694 | u829264360 | 1497554232 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 105 | n = input()
houses = raw_input().split()
houses = sorted(list(set(houses)))
print houses[-1] - houses[0] |
s226227026 | p03694 | u831747423 | 1497465985 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 142 | raw = int(raw_input().split(""))
tmp = 1
for i in range(len(raw) - 1):
div = abs(raw[i] - raw[i-1])
if div >= tmp:
tmp = div
print tmp |
s756668850 | p03694 | u351527281 | 1497371478 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 83 | N = int(input())
a = [int(num) for num in input().split()]
print(str(max(a)-min(a)) |
s939328079 | p03694 | u348405655 | 1497313072 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 81 | N = int(input())
a = list(append(map(int,input().split)))
print(max(a) - min(a))
|
s844118056 | p03694 | u606174760 | 1497224822 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 108 | # -*- coding: utf-8 -*-
import sys
N = input()
an = input()
s = sorted(set(int(an.split())))
print(sum(s))
|
s726530605 | p03694 | u606174760 | 1497224714 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 103 | # -*- coding: utf-8 -*-
import sys
N = input()
an = input()
s = sorted(set(an.split()))
print(sum(s))
|
s135547019 | p03694 | u606174760 | 1497224325 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 104 | # -*- coding: utf-8 -*-
import sys
N = input()
an = input()
s = set(sorted(an.split()))
print(sum(s))
|
s928056214 | p03694 | u840684628 | 1497223803 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | N = int(input())
a = [int(n) for n in input().split()].sort()
print(a[N-1] - a[0]) |
s820922117 | p03694 | u426627397 | 1497155437 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3056 | 98 | N = int(input())
a = [input() for i in range(N)]
output = int(max(a)) - int(min(a))
print(output) |
s336255846 | p03694 | u191214791 | 1497153296 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 79 | input(); print((lambda xs: max(xs) - min(xs))[int(x) for x in input().split()]) |
s573906358 | p03694 | u785205215 | 1497151975 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 68 | r = input().split()
max_i= max(r)
min_i= min(r)
print(max_i - min_i) |
s509181102 | p03694 | u712719923 | 1497148687 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 389 | def main():
s = raw_input()
s = s.split("\n")
a = []
for i in range( int(s[0]) ):
a[i] = s[1].split()[i]
for k in range( int(s[0]) ):
for i in range( int(s[0]) ):
if a[i] >= a[i+k]:
b = a[i+k]
a[i+k] = a[i]
a[i] = b
... |
s054944707 | p03694 | u768816323 | 1497148008 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 166 | N=int(input())
a=[int(i) for i in input(). split ()]
mi=a[0]
ma=a[0]
while i<N:
if a[i]>ma:
ma=a[i]
if a[i]<mi:
mi=a[i]
i+=1
print (ma-mi) |
s893945953 | p03694 | u678875535 | 1497147314 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 96 | #!/usr/bin/env python3
a = [ int(input()) for i in range(int(input())) ]
print(max(a)-min(a))
|
s039165672 | p03694 | u768816323 | 1497146926 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 166 | N=int(input())
a=[int(i) for i in input(). split ()]
mi=a[i]
ma=a[i]
while i<N:
if a[i]>ma:
ma=a[i]
if a[i]<mi:
mi=a[i]
i+=1
print (ma-mi) |
s126901412 | p03694 | u348795830 | 1497144676 | Python | Python (2.7.6) | py | Runtime Error | 295 | 19264 | 98 | N=raw_input()
a=raw_input().split()
import numpy as np
ans=np.abs(np.max(a)-np.min(a))
print(ans) |
s937685727 | p03694 | u016620620 | 1497143875 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 141 | houseTime = int(input())
place = input().split()
place = int(i) for i in place
place = sorted(place)
print(place[houseTime - 1] - place[0])
|
s402778027 | p03695 | u286422818 | 1601007261 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9060 | 937 | #!/usr/local/bin/python3
# https://atcoder.jp/contests/abc064/tasks/abc064_c
def check(a):
if 1 <= a < 400:
return 0
elif 400 <= a < 799:
return 1
elif 800 <= a < 1199:
return 2
elif 1200 <= a < 1599:
return 3
elif 1600 <= a < 1999:
return 4
elif 2000 <=... |
s464434253 | p03695 | u821251381 | 1600990244 | Python | Python (3.8.2) | py | Runtime Error | 115 | 27204 | 332 | import numpy as np
N,*A=map(int,open(0).read().split())
A=(np.array(A)//400).astype("int32")
color_num=0
colors=np.zeros(9)
for a in A:
colors[min(a,9)]+=1
c=np.count_nonzero(colors[:-1])
min_color_num = 1 if (c==0 and colors[-1]>0) else c
max_color_num = min(8,c+max(int(colors[-1]),0))
print(min_color_num,max... |
s971100931 | p03695 | u821251381 | 1600989924 | Python | Python (3.8.2) | py | Runtime Error | 117 | 26904 | 324 | import numpy as np
N,*A=map(int,open(0).read().split())
A=(np.array(A)//400).astype("int32")
color_num=0
colors=np.zeros(9)
for a in A:
colors[a]+=1
c=np.count_nonzero(colors[:-1])
min_color_num = 1 if (c==0 and colors[-1]>0) else c
max_color_num = min(8,c+max(int(colors[-1]),0))
print(min_color_num,max_color_n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.