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
int64
0
100
memory
stringlengths
4
6
code_size
int64
15
14.7k
code
stringlengths
15
14.7k
problem_id
stringlengths
6
6
problem_description
stringlengths
358
9.83k
input
stringlengths
2
4.87k
output
stringclasses
807 values
__index_level_0__
int64
1.1k
1.22M
s448997726
p00728
u598745142
1501976898
Python
Python3
py
Accepted
40
8160
463
import math import copy def average(points): sum = 0 for i in points: sum += i return sum / len(points) outputs = [] while True: num = int(input()) if num == 0: break points = [] for _ in range(num): point = int(input()) points.append(point) points = ...
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,196
s244483188
p00728
u633333374
1502698682
Python
Python
py
Accepted
10
6436
290
while True: n = int(raw_input()) if n == 0: break else: list = [] for i in range(n): score = int(raw_input()) list.append(score) list.sort(); list.pop(0); list.pop(); x = sum(list) / (n-2) print x
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,197
s926083680
p00728
u166871988
1502700837
Python
Python3
py
Accepted
20
7644
223
while True: n=int(input()) if n==0:break points=[] for i in range(n): points.append(int(input())) points.remove(max(points)) points.remove(min(points)) print(int(sum(points)/len(points)))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,198
s078809410
p00728
u741801763
1505556444
Python
Python3
py
Accepted
30
7644
270
if __name__ == "__main__": while True: dataset = [] n = 0 n = int(input()) if n== 0: break for i in range(n): dataset.append(int(input())) print(int(((sum(dataset) - min(dataset) - max(dataset))/(n - 2))))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,199
s022082523
p00728
u780025254
1511535256
Python
Python3
py
Accepted
30
7720
252
import sys while True: n = int(sys.stdin.readline().rstrip()) if n == 0: break scores = [int(sys.stdin.readline().rstrip()) for i in range(n)] result = (sum(scores) - (max(scores) + min(scores))) // (n - 2) print(result)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,200
s243256524
p00728
u506554532
1512813545
Python
Python3
py
Accepted
30
5604
163
while True: n = int(input()) if n == 0: break src = [int(input()) for i in range(n)] ans = (sum(src) - max(src) - min(src)) // (n-2) print(ans)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,201
s817717482
p00728
u886694089
1512992497
Python
Python3
py
Accepted
30
5604
233
# coding: utf-8 # Your code here! while(1): risuto = [] num = int(input()) if num == 0 : break for i in range(num): risuto.append(int(input())) print((sum(risuto)-max(risuto)-min(risuto))//(num-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,202
s695727577
p00728
u661290476
1517640485
Python
Python3
py
Accepted
30
5592
296
while True: n = int(input()) if n == 0: break MIN = 1000 MAX = 0 points = 0 for i in range(n): p = int(input()) if MIN > p: MIN = p if MAX < p: MAX = p points += p print((points - MIN - MAX) // (n - 2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,203
s225026247
p00728
u963883732
1518510195
Python
Python3
py
Accepted
20
5604
157
while True: n = int(input()) if n == 0: break s = [] for i in range(n): s.append(int(input())) s.sort() del s[0] del s[-1] print(sum(s)//len(s))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,204
s242655615
p00728
u005739171
1520486306
Python
Python3
py
Accepted
30
5636
215
import bisect while True: n = int(input()) if n == 0: break score = [] for _ in range(n): s = int(input()) bisect.insort(score, s) print(sum(score[1:-1])//(len(score)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,205
s337136546
p00728
u005739171
1520486323
Python
Python3
py
Accepted
30
5628
215
import bisect while True: n = int(input()) if n == 0: break score = [] for _ in range(n): s = int(input()) bisect.insort(score, s) print(sum(score[1:-1])//(len(score)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,206
s959728528
p00728
u646461156
1521265058
Python
Python3
py
Accepted
20
5604
212
def main(): while True: n=int(input()) if n==0: break ls=[int(input()) for i in range(n)] ls.sort() score_sum=sum(ls)-ls[0]-ls[n-1] print(int(score_sum//(n-2))) if __name__=="__main__": main()
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,207
s200481880
p00728
u146816547
1523084892
Python
Python
py
Accepted
10
4632
162
while True: n = int(raw_input()) if n == 0: break L = [int(raw_input()) for _ in range(n)] print (sum(L) - max(L) - min(L)) / (n - 2)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,208
s233745507
p00728
u591052358
1523695695
Python
Python3
py
Accepted
30
5592
405
while(True): x = input() x= int(x) if x==0: break max_p = 0 min_p= 1000 total = 0 for n in range(x): point = input() point = int(point) total += point if max_p < point: max_p = point if min_p > point: min_p = point ...
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,209
s534188056
p00728
u878596989
1523845921
Python
Python3
py
Accepted
30
5592
177
while True: N = int(input()) if N == 0: break S = [] for i in range(N): S.append(int(input())) print((sum(S) - max(S) - min(S))//(len(S)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,210
s006035876
p00728
u878596989
1523870698
Python
Python3
py
Accepted
30
5592
186
while True: N = int(input()) if N == 0: break S = [] for i in range(N): S.append(int(input())) print((sum(S) - max(S) - min(S))//(len(S)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,211
s626176628
p00728
u269391636
1523872274
Python
Python3
py
Accepted
30
5596
197
while(True): n = int(input()) if n == 0: quit() a = [] for i in range(n): a.append(int(input())) a.sort() a = a[1:-1] ans = 0 for j in a: ans += j print(ans//len(a))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,212
s487681266
p00728
u624914682
1523872723
Python
Python3
py
Accepted
20
5596
241
N=int(input()) while N!=0: data=[] for i in range(N): data.append(int(input())) data.sort() Sum=0 Count=0 for i in range(N-2): Sum+=data[i+1] Count+=1 print(Sum//Count) N=int(input())
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,213
s663100263
p00728
u584093205
1524995742
Python
Python3
py
Accepted
30
5604
162
while(1): n = int(input()) if n == 0: break tmp = [int(input()) for i in range(n)] print(int((sum(tmp) - max(tmp) - min(tmp)) / (n - 2)))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,214
s636411619
p00728
u925259339
1526552967
Python
Python3
py
Accepted
30
5660
296
import math def main(): r = [] while True: n = int(input()) if n == 0: break m = [] for i in range(n): m.append(int(input())) r.append(math.floor((sum(m) - max(m) - min(m))/(n-2))) for j in r: print(j) main()
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,215
s112924315
p00728
u023471147
1526568204
Python
Python3
py
Accepted
20
5600
179
while True: n = int(input()) if n == 0: break s = [int(input()) for i in range(n)] s.sort() score = sum(s) - s[0] - s[-1] print(score // (n - 2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,216
s823147852
p00728
u186282999
1527502009
Python
Python3
py
Accepted
30
5604
255
array = [] while True: n = int(input()) if n == 0: break tmp_array = [] for i in range(n): tmp_array.append(int(input())) tmp_array.sort() array.append(str(sum(tmp_array[1:-1])//(n-2))) print("\r\n".join(array))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,217
s831617015
p00728
u777277984
1527676932
Python
Python3
py
Accepted
20
5592
195
while True: n = int(input()) if n == 0: break s = [] for i in range(n): s.append(int(input())) s.remove(max(s)); s.remove(min(s)) print(sum(s)//len(s))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,218
s469488363
p00728
u509278866
1527821098
Python
Python3
py
Accepted
60
9028
820
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools sys.setrecursionlimit(10**7) inf = 10**3 eps = 1.0 / 10**10 mod = 10**9+7 def LI(): return [int(x) for x in sys.stdin.readline().split()] def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()] def LF():...
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,219
s341297486
p00728
u209989098
1528792551
Python
Python3
py
Accepted
30
5604
293
i = int(input()) p = 0 while i != 0: k =[ [0]*100]*20 ma = 0 mi = 1000 for pp in range(i): l = int(input()) k[p][pp] = l ma = max(ma,l) mi = min(mi,l) su = sum(k[p]) - ma - mi l = i -2 print(su // l) p += 1 i = int(input())
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,220
s723039210
p00728
u316584871
1529216911
Python
Python3
py
Accepted
30
5664
353
import math while True: n = int(input()) if n == 0 : break sum = [] for i in range(n): x = int(input()) sum.append(x) sum.sort() del sum[n-1] del sum[0] rsum = 0 for i in range(n-2): rsum = rsum + sum[i] average = rsum/(n-2) result = math.floor...
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,221
s891697582
p00728
u855199458
1529594555
Python
Python3
py
Accepted
20
5652
236
# -*- coding: utf-8 -*- from itertools import accumulate def inpl(): return map(int, input().split()) N = int(input()) while N: tmp = sorted([int(input()) for _ in range(N)]) print(sum(tmp[1:-1])//(N-2)) N = int(input())
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,222
s402923214
p00728
u798087532
1529750555
Python
Python3
py
Accepted
20
5604
127
while True: n = int(input()) if n == 0: break s = [int(input()) for _ in range(n)] s.sort() print(sum(s[1:n-1])//(n-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,223
s897568977
p00728
u136916346
1529904887
Python
Python3
py
Accepted
20
5608
158
while 1: n=int(input()) if not n:break l=[int(input()) for _ in range(n)] l.pop(l.index(max(l))) l.pop(l.index(min(l))) print(int(sum(l)/len(l)))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,224
s342454053
p00728
u352394527
1530346789
Python
Python3
py
Accepted
20
5612
126
while True: n = int(input()) if n == 0: break print(sum(sorted([int(input()) for _ in range(n)])[1:-1]) // (n - 2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,225
s465651956
p00728
u064170672
1530352888
Python
Python3
py
Accepted
30
5596
189
while True: n = int(input()) if n == 0: break S = [] for i in range(n): S.append(int(input())) S.sort() S = S[1:n-1] print(sum(S) // len(S))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,226
s342982105
p00728
u300645821
1344323827
Python
Python
py
Accepted
10
4220
294
#!/usr/bin/python -- import sys #2007 Domestic A def judge(n): ma=0 mi=1000 s=0 for i in range(0,n): x=int(sys.stdin.readline()) if x<mi: mi=x if x>ma: ma=x s+=x print (s-ma-mi)/(n-2) while 1: n=int(sys.stdin.readline()) if n==0: break judge(n)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,227
s522075968
p00728
u109084363
1358005951
Python
Python
py
Accepted
10
4224
279
import sys while True: n = int(sys.stdin.readline()) if n == 0: break score = [] for i in xrange(n): x = int(sys.stdin.readline()) score.append(x) score.sort() result = score[1:-1] print sum(result) / len(result)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,228
s471826104
p00728
u645196472
1361944199
Python
Python
py
Accepted
20
4216
164
import sys while True: n = int(input()) if n == 0: break print( int( sum( sorted( [int(input()) for x in range(0, n)] )[1:-1] )/(n-2) ) )
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,229
s711205105
p00728
u560838141
1364456224
Python
Python
py
Accepted
10
4216
153
while True: n = input(); if n == 0: break; a = [] for i in range(n): a.append(input()); print (sum(a) - min(a) - max(a)) / (len(a) - 2)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,230
s788065520
p00728
u104911888
1368539279
Python
Python
py
Accepted
20
4204
106
while True: n=input() if n==0:break print sum(sorted([input() for i in range(n)])[1:-1])/(n-2)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,231
s848266116
p00728
u633068244
1399444527
Python
Python
py
Accepted
20
4192
108
while 1: n = input() if n == 0: break print sum(sorted([int(raw_input()) for i in range(n)])[1:-1])/(n-2)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,232
s931108081
p00728
u300645821
1400582609
Python
Python3
py
Accepted
30
6720
283
import sys if sys.version_info[0]>=3: raw_input=input def judge(n): ma=0 mi=1000 s=0 for i in range(0,n): x=int(raw_input()) if x<mi: mi=x if x>ma: ma=x s+=x print((s-ma-mi)//(n-2)) while 1: n=int(raw_input()) if n==0: break judge(n)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,233
s733360383
p00728
u300645821
1400582617
Python
Python
py
Accepted
10
4216
283
import sys if sys.version_info[0]>=3: raw_input=input def judge(n): ma=0 mi=1000 s=0 for i in range(0,n): x=int(raw_input()) if x<mi: mi=x if x>ma: ma=x s+=x print((s-ma-mi)//(n-2)) while 1: n=int(raw_input()) if n==0: break judge(n)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,234
s248791813
p00728
u703446356
1400595966
Python
Python
py
Accepted
20
4216
245
while(True): n = input() if n == 0: break; sl = 1001 sh = 0 ret = 0 for i in range(n): tmp = input() ret += tmp if tmp < sl: sl = tmp if tmp > sh: sh = tmp ret -= (sl + sh) print "%d" % (ret/(n-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,235
s964714521
p00728
u342624490
1597758568
Python
Python3
py
Accepted
30
5604
126
while True: n = int(input()) if n == 0: break print(sum(sorted([int(input()) for _ in range(n)])[1:-1]) // (n - 2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,236
s813260552
p00728
u365131854
1597752948
Python
Python3
py
Accepted
20
5608
106
while 1: n=int(input()) if n<3: break print((sum(sorted([int(input()) for _ in [0]*n])[1:-1]))//(n-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,237
s572471728
p00728
u363460225
1597672696
Python
Python3
py
Accepted
30
5596
163
while True: n=int(input()) if n==0: break a=[] for i in range(n): a.append(int(input())) print((sum(a)-max(a)-min(a))//(n-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,238
s976551107
p00728
u430159711
1597669648
Python
Python3
py
Accepted
30
5600
166
while True: n=int(input()) if n == 0: break a=[] for i in range(n): a.append(int(input())) print((sum(a)-max(a)-min(a))//(len(a)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,239
s389683466
p00728
u852547520
1597646411
Python
Python3
py
Accepted
20
5592
183
while True: n = int(input()) a = [] if n == 0: break for i in range(n): a.append(int(input())) print((sum(a)-max(a)-min(a))//(len(a)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,240
s838153921
p00728
u799076010
1597632190
Python
Python3
py
Accepted
20
5608
148
while True: n=int(input()) if n==0: break A=[int(input()) for i in range(n)] B=((sum(A)-max(A)-min(A))//(n-2)) print(B)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,241
s229745972
p00728
u326077502
1597629890
Python
Python3
py
Accepted
20
5600
167
while True: n=int(input()) if n==0: break a=[] for i in range(n): a.append(int(input())) print((sum(a)-max(a)-min(a))//(n-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,242
s416551606
p00728
u878828646
1597587652
Python
Python3
py
Accepted
30
5592
161
while True: n=int(input()) if n == 0: break a=[] for i in range(n): a.append(int(input())) print((sum(a)-max(a)-min(a))//(len(a)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,243
s715968772
p00728
u476754031
1597572783
Python
Python3
py
Accepted
30
5600
179
while True: n = int(input()) if n == 0: break s = [int(input()) for i in range(n)] s.sort() score = sum(s) - s[0] - s[-1] print(score // (n - 2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,244
s761895686
p00728
u645087541
1597537596
Python
Python3
py
Accepted
30
5592
173
while True: n = int(input()) if n == 0: break a = [] for i in range(n): a.append(int(input())) print((sum(a)-max(a)-min(a))//(len(a)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,245
s686953678
p00728
u920513163
1597510746
Python
Python3
py
Accepted
30
5600
190
while 1: n=int(input()) if n==0:break score=[] for i in range(n): score.append(int(input())) score.sort() score=score[1:-1] print(sum(score)//len(score))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,246
s396430454
p00728
u799016206
1597432172
Python
Python3
py
Accepted
30
5604
181
while True: n=int(input()) if n<3: break lst=[int(input()) for i in range(n)] a=sum(lst) b=min(lst) c=max(lst) avg=(a-b-c)//(n-2) print(avg)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,247
s753188574
p00728
u799752967
1597288635
Python
Python3
py
Accepted
30
5608
178
# coding: utf-8 # Your code here! while True: n=int(input()) if n==0: break a=[int(input()) for _ in range(n)] print((sum(a)-max(a)-min(a))//(len(a)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,248
s832135894
p00728
u128671689
1597053813
Python
Python3
py
Accepted
30
5596
242
x=[] while True: n=int(input()) if n==0: break else: for i in range(n): s=int(input()) x.append(s) S1=sum(x)-max(x)-min(x) S2=n-2 print(int(S1/S2)) x.clear()
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,249
s460028957
p00728
u250040203
1597039781
Python
Python3
py
Accepted
20
5600
255
while True: mylist = [] n = input() n = int(n) if n ==0: break for i in range(0,n): mylist.append(int(input())) mylistz = sorted(mylist) del mylistz[0] del mylistz[n-2] print(int(sum(mylistz))//(n-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,250
s504760503
p00728
u278236319
1597038491
Python
Python3
py
Accepted
20
5596
300
while True: n = int(input()) max = 0 min = 1000 sum = 0 if n == 0: break for i in range(n): s = int(input()) sum += s if s < min: min = s if max < s: max = s ave = (sum - min - max) // (n - 2) print(ave)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,251
s308874440
p00728
u574841425
1596861270
Python
Python3
py
Accepted
30
5600
267
# AOJ 1147: ICPC Score Totalizer Software # Python3 2018.7.14 bal4u while True: n = int(input()) if n == 0: break s, vmin, vmax = 0, 1001, -1 for i in range(n): a = int(input()) vmin = min(vmin, a) vmax = max(vmax, a) s += a print((s-vmin-vmax)//(n-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,252
s123884952
p00728
u779523319
1596778914
Python
Python3
py
Accepted
20
5600
283
s=[] while True: N=int(input()) if N==0: break else: tmp=[int(input()) for _ in range(N)] tmp.sort() tmp=tmp[1:-1] s.append(tmp) for si in s: N=len(si) ans=0 for sij in si: ans+=sij ans//=N print(ans)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,253
s325516527
p00728
u421274895
1596682680
Python
Python3
py
Accepted
20
5604
229
#(38)ICP得点集計ソフトウェア while True: n=int(input()) if n==0: break s=[int(input()) for i in range(n)] a=max(s) b=min(s) c=sum(s) y=(c-a-b)//(n-2) print(y)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,254
s346622376
p00728
u632910712
1596664663
Python
Python3
py
Accepted
20
5604
175
while True: n = int(input()) if n == 0: break a = [int(input()) for i in range(n)] a.sort() x = sum(a) - a[0] - a[-1] print(x // ( n- 2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,255
s471532738
p00728
u996694149
1596651097
Python
Python3
py
Accepted
20
5664
267
import math while True: n = int(input()) scores = [int(input()) for i in range(n)] scores.sort() if n == 0: break total = 0 for i in range(1, n - 1): total += scores[i] print(math.floor(total / (n - 2)))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,256
s596695878
p00728
u548283997
1596554992
Python
Python3
py
Accepted
30
5600
231
while True : N = int(input()) if N == 0 : break data = list(int(input()) for i in range(N)) data.sort() del data[0] del data[-1] data_ave = sum(data)/len(data) print(int(data_ave))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,257
s959074030
p00728
u427834127
1596505130
Python
Python3
py
Accepted
30
5596
169
while True: n = int(input()) if n == 0: break data=[] for i in range(n): a=int(input()) data.append(a) print((sum(data)-max(data)-min(data))//(n-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,258
s210041195
p00728
u056263240
1596429769
Python
Python3
py
Accepted
30
5608
183
while True : n = int(input()) if n == 0 : break s = [int(input()) for i in range (n)] s.sort() score = sum(s) - s[0] - s[-1] print(score//(n-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,259
s398290411
p00728
u512192552
1596378563
Python
Python3
py
Accepted
20
5608
301
# coding: utf-8 # Your code here! while True: n=int(input()) x=[] for i in range(n): s=int(input()) x.append(s) x1=sorted(x) if n==0: break else: sum1=sum(x1) sum1-=x1[0]+x1[n-1] y=sum1//(n-2) print(y)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,260
s897547203
p00728
u529477970
1596328298
Python
Python3
py
Accepted
20
5604
143
while True: n=int(input()) if n==0: break a=[int(input()) for i in range(n)] print((sum(a)-max(a)-min(a))//(n-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,261
s416168727
p00728
u834258010
1596276477
Python
Python3
py
Accepted
20
5604
179
while True: n = int(input()) if n == 0: break s = [int(input()) for i in range(n)] s.sort() score = sum(s) - s[0] - s[-1] print(score // (n - 2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,262
s464463878
p00728
u782152619
1596256495
Python
Python3
py
Accepted
20
5588
312
while True: n = int(input()) max = 0 min = 1000 sum = 0 ave = 0 if n == 0: break for i in range(n): s = int(input()) sum += s if s < min: min = s if max < s: max = s ave = (sum - min - max) // (n - 2) print(ave)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,263
s509508442
p00728
u082412851
1596254382
Python
Python3
py
Accepted
30
5596
221
while True: n = int(input()) if n == 0: break else: lst=[] for i in range(n): s = int(input()) lst.append(s) print((sum(lst)-max(lst)-min(lst))//(n-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,264
s369372362
p00728
u477744960
1596187178
Python
Python3
py
Accepted
30
5596
267
while True: n=int(input()) if n==0: break else: max_s=0 min_s=2000 sum_s=0 for i in range(n): s=int(input()) sum_s=sum_s+s if s<min_s: min_s=s if s>max_s: max_s=s print((sum_s-max_s-min_s)//(n-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,265
s730625711
p00728
u360695385
1596181686
Python
Python3
py
Accepted
30
5592
337
while True: n=int(input()) if n==0: break else: max_s=0 min_s=2000 sum_s=0 for i in range(n): s=int(input()) sum_s=sum_s+s if s<min_s: min_s=s if s>max_s: max_s=s print((sum_s-max_...
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,266
s026082608
p00728
u413704014
1596127576
Python
Python3
py
Accepted
20
5664
257
import math while True: n = int(input()) scores = [int(input()) for i in range(n)] scores.sort() if n == 0: break total = 0 for i in range(1, n - 1): total += scores[i] print(math.floor(total / (n - 2)))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,267
s441959882
p00728
u741477657
1596044692
Python
Python3
py
Accepted
30
5592
337
while True: n=int(input()) if n==0: break else: max_s=0 min_s=2000 sum_s=0 for i in range(n): s=int(input()) sum_s=sum_s+s if s<min_s: min_s=s if s>max_s: max_s=s print((sum_s-max_...
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,268
s747922826
p00728
u905454643
1595898881
Python
Python3
py
Accepted
30
5592
181
while True: n=int(input()) if n == 0: break a=[] for i in range(n): s=int(input()) a.append(s) print((sum(a)-max(a)-min(a))//(n-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,269
s159599283
p00728
u275486335
1595894708
Python
Python3
py
Accepted
20
5600
250
while True: n=int(input()) if n==0: break x=[] for i in range(n): a=int(input()) x.append(a) y=sorted(x) sum=0 for j in range(1,len(y)-1): sum+=y[j] ave=sum//((len(y))-2) print(ave)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,270
s666437681
p00728
u896809383
1595873181
Python
Python3
py
Accepted
20
5596
198
while True: n = int(input()) if n == 0: break s, vmin, vmax = 0, 1001, -1 for i in range(n): a = int(input()) vmin = min(vmin, a) vmax = max(vmax, a) s += a print((s-vmin-vmax)//(n-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,271
s645863618
p00728
u037566157
1595858652
Python
Python3
py
Accepted
30
5596
212
while True: n = int(input()) if n == 0: break else: list=[] for i in range(n): list.append(int(input())) list.sort() print(sum(list[1:n-1])//(n-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,272
s183491103
p00728
u677563181
1595855747
Python
Python3
py
Accepted
30
5608
126
while True: n = int(input()) if n == 0: break print(sum(sorted([int(input()) for _ in range(n)])[1:-1]) // (n - 2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,273
s455220786
p00728
u762022668
1595830369
Python
Python3
py
Accepted
20
5604
170
while True: n = int(input()) if n == 0: break s = [int(input()) for i in range(n)] s.sort() ans = sum(s[1:n - 1]) // (n - 2) print(ans)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,274
s153061061
p00728
u319403848
1595824848
Python
Python3
py
Accepted
20
5600
168
while True: N=int(input()) if N==0: break s=list(int(input())for i in range(N)) s.sort() del s[0] del s[-1] s_ave=sum(s)/len(s) print(int(s_ave))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,275
s857696522
p00728
u940983140
1595813726
Python
Python3
py
Accepted
30
5592
188
while True: n=int(input()) if n == 0: break a=[] for i in range (n): a.append(int(input())) print((sum(a)-max(a)-min(a))//(len(a)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,276
s321778953
p00728
u836923362
1595599092
Python
Python3
py
Accepted
20
5600
259
def calc_score(list): list.remove(max(list)) list.remove(min(list)) return int(sum(list) / len(list)) while True: grader = int(input()) if grader == 0: break scores = [int(input()) for _ in range(grader)] print(calc_score(scores))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,277
s715525924
p00728
u965173609
1595406941
Python
Python3
py
Accepted
20
5596
244
while True: n=int(input()) x=[] if n==0: break else: for i in range(n): s=int(input()) x.append(s) a=min(x) b=max(x) ave=(sum(x)-a-b)/(n-2) print(int(ave))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,278
s838807777
p00728
u189528630
1595400740
Python
Python3
py
Accepted
30
5600
179
while True: n = int(input()) if n == 0: break s = [int(input()) for i in range(n)] s.sort() score = sum(s) - s[0] - s[-1] print(score // (n - 2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,279
s701184119
p00728
u438043982
1595297935
Python
Python3
py
Accepted
30
5592
165
while True: x = int(input()) if x == 0: break y = [] for i in range(x): y.append(int(input())) print((sum(y)-max(y)-min(y))//(len(y)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,280
s233165280
p00728
u709176169
1595294398
Python
Python3
py
Accepted
20
5664
176
import math while True: n=int(input()) if n==0: break x= [int(input()) for i in range(n)] y=(sum(x)-max(x)-min(x))/(n-2) print(math.floor(y))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,281
s382867950
p00728
u457539618
1595293393
Python
Python3
py
Accepted
30
5596
158
while True: n=int(input()) if n==0:break a=[] for i in range(n): a.append(int(input())) print((sum(a)-max(a)-min(a))//(len(a)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,282
s598416475
p00728
u596129030
1595231011
Python
Python3
py
Accepted
20
5592
167
while True: n=int(input()) if n==0: break a=[] for i in range(n): a.append(int(input())) print((sum(a)-max(a)-min(a))//(n-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,283
s120231578
p00728
u118506623
1595224106
Python
Python3
py
Accepted
30
5596
206
while True: n = int(input()) if n == 0: break s = [] for i in range(n): s.append(int(input())) s.sort() s.pop(0) s.pop() print(int(sum(s)/len(s)))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,284
s482194126
p00728
u528181593
1595220099
Python
Python3
py
Accepted
20
5592
182
while True: n=int(input()) if n==0:break a=[] for i in range (n): a.append(int(input())) print((sum(a)-max(a)-min(a))//(len(a)-2)) if n==0:break
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,285
s907566722
p00728
u662362547
1595174824
Python
Python3
py
Accepted
30
5592
164
while True: n = int(input()) if n == 0: break a=[] for i in range(n): a.append(int(input())) print((sum(a)-max(a)-min(a))//(len(a)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,286
s043319458
p00728
u167524059
1595170688
Python
Python3
py
Accepted
20
5600
231
while True : N = int(input()) if N == 0 : break data = list(int(input()) for i in range(N)) data.sort() del data[0] del data[-1] data_ave = sum(data)/len(data) print(int(data_ave))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,287
s829405899
p00728
u633358233
1595167628
Python
Python3
py
Accepted
30
5596
171
while True: n= int(input()) if n==0 : break a=[] for i in range(n): a.append(int(input())) print((sum(a)-max(a)-min(a))//(len(a)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,288
s900241552
p00728
u829520323
1595167625
Python
Python3
py
Accepted
20
5592
176
while True: n= int(input()) if n==0 : break a=[] for i in range(n): a.append(int(input())) print((sum(a)-max(a)-min(a))//(len(a)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,289
s243304531
p00728
u355413291
1595167601
Python
Python3
py
Accepted
30
5596
175
while True: n= int(input()) if n==0 : break a=[] for i in range(n): a.append(int(input())) print((sum(a)-max(a)-min(a))//(len(a)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,290
s741819538
p00728
u320921262
1595131560
Python
Python3
py
Accepted
20
5596
173
while True: n = int(input()) if n == 0: break a = [] for i in range(n): a.append(int(input())) print((sum(a)-max(a)-min(a))//(len(a)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,291
s594510226
p00728
u926915999
1595075916
Python
Python3
py
Accepted
30
5600
197
while True: N = int(input()) if N == 0: break S = [] for _ in range(N): S.append(int(input())) S.sort() S = S[1:N-1] ans = sum(S)//len(S) print(ans)
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,292
s580094721
p00728
u100874602
1594962224
Python
Python3
py
Accepted
30
5592
167
while True: n=int(input()) if n==0: break a=[] for i in range(n): a.append(int(input())) print((sum(a)-max(a)-min(a))//(len(a)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,293
s887054472
p00728
u635020217
1594889000
Python
Python3
py
Accepted
30
5600
207
# coding: utf-8 # Your code here! while True: n = int(input()) if n == 0: break a = [] for i in range(n): a.append(int(input())) print((sum(a)-max(a)-min(a))//(len(a)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,294
s552389675
p00728
u991830357
1594800681
Python
Python3
py
Accepted
30
5592
160
while True: n=int(input()) if n==0: break a=[] for i in range(n): a.append(int(input())) print((sum(a)-max(a)-min(a))//(len(a)-2))
p00728
<h1><font color="#000">Problem A:</font> ICPC Score Totalizer Software</h1> <!-- end en only --> <img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_a-1" width=300 align=left> <!-- begin en only --> <p> The International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the...
3 1000 342 0 5 2 2 9 11 932 5 300 1000 0 200 400 8 353 242 402 274 283 132 402 523 0
342 7 300 326
24,295