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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s365248456 | p00728 | u272062354 | 1594795949 | Python | Python3 | py | Accepted | 20 | 5596 | 172 | 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,296 |
s538473291 | p00728 | u935687319 | 1594743812 | Python | Python3 | py | Accepted | 20 | 5588 | 312 | while True:
a=0
ma=0
mi=99999
n = int(input())
if n == 0:
break
else:
for i in range(n):
b=int(input())
a=a+b
if ma<b:
ma=b
if mi>b:
mi=b
answer=(a-ma-mi)//(n-2)
print(answer)
| 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,297 |
s944794665 | p00728 | u844203875 | 1594741045 | 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,298 |
s500165173 | p00728 | u819143290 | 1594740198 | Python | Python3 | py | Accepted | 30 | 5604 | 294 | # 演習1-12
while True:
a = int(input())
if a == 0:
break
else:
li = [0]*a
for i in range(a):
li[i] = int(input())
li_sort = sorted(li)
del li_sort[0]
del li_sort[-1]
print(int(sum(li_sort)/len(li_sort)))
| 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,299 |
s823665266 | p00728 | u753534330 | 1594735546 | Python | Python3 | py | Accepted | 30 | 5592 | 272 | for i in range(20):
n = int(input())
if n == 0:
break
data = list()
for j in range(n):
a = int(input())
data.extend([a])
#print(data)
x = sum(data) - min(data) - max(data)
#print(x)
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,300 |
s137283113 | p00728 | u288578617 | 1594692046 | Python | Python3 | py | Accepted | 20 | 5600 | 211 | while True:
x=int(input())
if x==0:
break
a=[]
for i in range(x):
a.append(int(input()))
A=max(a)
B=min(a)
C=sum(a)
D=len(a)
E=C-A-B
F=D-2
print(E//F)
| 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,301 |
s299964185 | p00728 | u706683821 | 1594689689 | Python | Python3 | py | Accepted | 30 | 5592 | 216 | while True:
n=int(input())
if n==0:
break
a=[]
for i in range(n):
a.append(int(input()))
A=max(a)
B=min(a)
C=sum(a)
D=len(a)
E=C-A-B
F=D-2
print(E//F)
| 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,302 |
s803288190 | p00728 | u419548414 | 1594689171 | Python | Python3 | py | Accepted | 30 | 5596 | 212 | 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,303 |
s751285973 | p00728 | u329155726 | 1594643883 | Python | Python3 | py | Accepted | 20 | 5596 | 232 | while True:
n = int(input())
S = []
if n==0:
break
for i in range(n):
S.append(int(input()))
#print(S)
S.sort()
#print(S)
S.pop(0)
S.pop()
#print(S)
print(sum(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,304 |
s837751762 | p00728 | u177648086 | 1594626179 | Python | Python3 | py | Accepted | 30 | 5600 | 266 | while True:
n=int(input())
if n == 0:
break
b=[]
for i in range(n):
a=int(input())
b.append(a)
c=sorted(b)
if n == 3:
print(c[1])
elif n >= 4:
d=sum(c)-c[0]-c[n-1]
e=n-2
print(d//e)
| 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,305 |
s129870311 | p00728 | u900012957 | 1594626107 | Python | Python3 | py | Accepted | 30 | 5600 | 186 | while True:
n = int(input())
if n == 0:
break
s, vn, vx = 0, 1001, -1
for i in range(n):
a = int(input())
vn = min(vn, a)
vx = max(vx, a)
s += a
print((s-vn-vx)//(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,306 |
s162555021 | p00728 | u034153923 | 1594619259 | Python | Python3 | py | Accepted | 30 | 5604 | 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,307 |
s529624603 | p00728 | u304266926 | 1594449562 | Python | Python3 | py | Accepted | 30 | 5612 | 392 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Problems 1157
Problem A: ICPC 得点集計ソフトウェア
"""
while True:
n = int(input())
if n == 0:
break
sum, s_min, s_max = 0, 1001, -1
for i in range(n):
score = int(input())
s_min = min(s_min, score)
s_max = max(s_max, 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,308 |
s500027318 | p00728 | u060839454 | 1594393542 | Python | Python3 | py | Accepted | 20 | 5660 | 364 | import sys
import math
input = sys.stdin.readline
##
num_score = int(input().rstrip())
while num_score != 0:
scores = []
for _ in range(num_score):
scores.append(int(input().rstrip()))
total = sum(scores) - max(scores) - min(scores)
average = math.floor(total / (len(scores) - 2))
print(aver... | 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,309 |
s413669390 | p00728 | u555228137 | 1594353721 | Python | Python3 | py | Accepted | 20 | 5588 | 292 | while True:
n=int(input())
min=1000
max=0
sum=0
if n==0:
break
for i in range(n):
tennsuu=int(input())
sum+=tennsuu
if tennsuu<min:
min=tennsuu
if tennsuu>max:
max=tennsuu
print((sum-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,310 |
s447887488 | p00728 | u455994792 | 1594180145 | Python | Python3 | py | Accepted | 30 | 5592 | 282 | a=[]
i=0
while True:
N=int(input())
if N==0:
break
else:
for i in range(N):
n=int(input())
a.append(n)
a.sort()
a.pop()
a.pop(0)
print(sum(a) // len(a))
a.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,311 |
s530741724 | p00728 | u141099640 | 1594092608 | Python | Python3 | py | Accepted | 20 | 5600 | 169 | while True:
P = []
n = int(input())
if n == 0:
exit()
for i in range(n):
P.append(int(input()))
print(sum(sorted(P)[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,312 |
s651953510 | p00728 | u219344987 | 1594086712 | Python | Python3 | py | Accepted | 20 | 5668 | 283 | import math
for i in range(30):
n = int(input())
if n == 0:
break
else:
ls = []
for i in range(n):
ls.append(int(input()))
ls.sort()
ls.remove(ls[0])
ls.remove(ls[-1])
print(math.floor(sum(ls)/len(ls)))
| 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,313 |
s912343084 | p00728 | u630948380 | 1594085506 | Python | Python3 | py | Accepted | 20 | 5600 | 363 | while True:
p=int(input())
if p==0:
break
else:
list1=[]
for i in range(p):
a=int(input())
list1.append(a)
i+=1
min1=min(list1)
max1=max(list1)
list1.remove(min1)
list1.remove(max1)
sum1=sum(list1)
... | 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,314 |
s124181291 | p00728 | u293306835 | 1594081825 | Python | Python3 | py | Accepted | 30 | 5592 | 282 | while True:
n=int(input())
if n>0:
l=list()
for i in range(n):
s=int(input())
l.append(s)
l.remove(max(l))
l.remove(min(l))
x=sum(l)
y=len(l)
print(int(x/y))
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,315 |
s701087009 | p00728 | u057189799 | 1594005460 | Python | Python3 | py | Accepted | 20 | 5600 | 197 | while True:
N = int(input())
if N == 0:
break
s = [0 for i in range(N)]
for i in range(N):
s[i] = int(input())
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,316 |
s151658295 | p00728 | u869208015 | 1594004984 | Python | Python3 | py | Accepted | 20 | 5592 | 285 | while True:
min = 1000
max = 0
sum = 0
n=int(input())
if n ==0:
break
for i in range(n):
s=int(input())
if s < min:
min = s
if s > max:
max = s
sum += s
print((sum - 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,317 |
s236149791 | p00728 | u514242733 | 1593936233 | Python | Python3 | py | Accepted | 20 | 5604 | 142 | 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,318 |
s987011895 | p00728 | u062640303 | 1593875052 | Python | Python3 | py | Accepted | 20 | 5600 | 171 | 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)
d=(c-a-b)//(n-2)
print(d)
| 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,319 |
s128954736 | p00728 | u090341796 | 1593781127 | Python | Python3 | py | Accepted | 20 | 5604 | 197 | while True:
n=int(input())
if n==0:
break
else:
li=[0]*n
for i in range(n):
li[i]=int(input())
print((sum(li)-max(li)-min(li))//(len(li)-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,320 |
s931094498 | p00728 | u637496220 | 1593717423 | Python | Python3 | py | Accepted | 30 | 5596 | 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,321 |
s121839986 | p00728 | u925773943 | 1593708717 | Python | Python3 | py | Accepted | 20 | 5592 | 429 | while True: #無限に繰り返す
n = int(input()) #n に審判の数を読み込む
if n == 0:
break #n が 0 のときにループから抜ける
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:
... | 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,322 |
s976315320 | p00728 | u836370820 | 1593680966 | Python | Python3 | py | Accepted | 20 | 5604 | 192 | while True:
n = int(input())
if n ==0:
break
else:
list1=[0]*n
for i in range(n):
list1[i]=int(input())
print( (sum(list1)-max(list1)-min(list1))//(len(list1)-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,323 |
s273501771 | p00728 | u909953183 | 1593602565 | Python | Python3 | py | Accepted | 20 | 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,324 |
s634147823 | p00728 | u040210821 | 1593506733 | Python | Python3 | py | Accepted | 30 | 5596 | 240 | while True:
n=int(input())
if n==0:
break
else:
A=[]
i=1
while i <=n:
a=int(input())
A.append(a)
i=i+1
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,325 |
s239478736 | p00728 | u769224372 | 1593487913 | Python | Python3 | py | Accepted | 20 | 5596 | 327 | while True:
n=int(input())
if n == 0:
break
else:
maxs=0
mins=2000
sums=0
for i in range(n):
s=int(input())
sums=sums+s
if s<mins:
mins=s
if s>maxs:
maxs=s
print((sums-maxs-mins)//... | 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,326 |
s631125775 | p00728 | u439344709 | 1593485094 | 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,327 |
s163084963 | p00728 | u696177481 | 1593483273 | Python | Python3 | py | Accepted | 30 | 5592 | 308 | while True:
n = int(input())
if n ==0:
break
else:
list0=[]
i=0
for i in range(n):
list0.append(int(input()))
list0.remove(max(list0))
list0.remove(min(list0))
s=sum(list0)
a = n-2
print(s//a)
i=i+1
| 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,328 |
s197009399 | p00728 | u259416836 | 1593483003 | Python | Python3 | py | Accepted | 20 | 5596 | 225 | while True:
n=int(input())
a=[]
if n==0:
break
else:
for i in range(n):
a.append(int(input()))
k=sorted(a)
del k[0]
del k[n-2]
s=sum(k)
print(int(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,329 |
s181678954 | p00728 | u840692555 | 1593482507 | Python | Python3 | py | Accepted | 30 | 5604 | 311 | while True:
n = int(input())
numbers = []
if n == 0:
break
for i in range(0, n):
numbers.append(int((input())))
maxValue = max(numbers)
minValue = min(numbers)
totalScore = sum(numbers)
print(str(int((totalScore - maxValue - minValue) / (len(numbers) - 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,330 |
s006331111 | p00728 | u004330503 | 1593482385 | Python | Python3 | py | Accepted | 20 | 5596 | 219 | while True:
n = int(input())
if n == 0:
break
else:
list=[]
for i in range(n):
a=int(input())
list.append(a)
print((sum(list)-max(list)-min(list))//(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,331 |
s453184557 | p00728 | u361745995 | 1593479423 | Python | Python3 | py | Accepted | 20 | 5604 | 159 | while 1:
n=int(input())
if n==0:
break
x=[int(input())for i in range(n)]
x.sort()
s=sum(x)-(x[0]+x[-1])
print(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,332 |
s115525382 | p00728 | u680047335 | 1593478772 | Python | Python3 | py | Accepted | 30 | 5596 | 205 | #1147
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,333 |
s034632284 | p00728 | u127853057 | 1593475743 | Python | Python3 | py | Accepted | 20 | 5600 | 209 | while True:
n=int(input())
if n==0:
break
else:
listA=[]
for i in range(n):
listA.append(int(input()))
print((sum(listA)-max(listA)-min(listA))//(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,334 |
s765278224 | p00728 | u599584311 | 1593435762 | Python | Python3 | py | Accepted | 30 | 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,335 |
s128600205 | p00728 | u860860406 | 1593424149 | Python | Python3 | py | Accepted | 30 | 5592 | 261 | while True:
n=int(input())
if n==0:
break
else:
list=[]
for i in range(n):
temp=int(input())
list.append(temp)
list.remove(max(list))
list.remove(min(list))
a=sum(list)//(n-2)
print(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,336 |
s548598295 | p00728 | u254461811 | 1593415109 | Python | Python3 | py | Accepted | 30 | 5600 | 213 | 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,337 |
s754965224 | p00728 | u586171604 | 1593409081 | Python | Python3 | py | Accepted | 30 | 5604 | 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,338 |
s927847692 | p00728 | u715285467 | 1593396253 | Python | Python3 | py | Accepted | 20 | 5596 | 341 | while True:
n=int(input())
if n==0:
break
else:
a=int(input())
max=a
min=a
sum=a
for i in range(1,n):
b=int(input())
sum=sum+b
if max<b:
max=b
elif min>b:
min=b
print(int((... | 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,339 |
s361703330 | p00728 | u601884326 | 1593396117 | Python | Python3 | py | Accepted | 30 | 5592 | 204 | while True:
n = int(input())
if n==0:
break
l = []
for i in range(n):
x = int(input())
l.append(x)
l.sort()
a = sum(l)-(max(l)+min(l))
print(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,340 |
s869745436 | p00728 | u692052236 | 1593252155 | Python | Python3 | py | Accepted | 30 | 5596 | 184 | while True:
n=int(input())
if n==0:
break
m=10000
M=0
sum=0
for i in range(n):
s=int(input())
m=min(m,s)
M=max(M,s)
sum=sum+s
print((sum-M-m)//(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,341 |
s775485682 | p00728 | u405148263 | 1593248269 | Python | Python3 | py | Accepted | 20 | 5588 | 215 | while True:
n=int(input())
if n==0:
break
m=10000
M=0
sum=0
for i in range(n):
s=int(input())
m=min(m,s)
M=max(M,s)
sum+=s
print((sum-M-m)//(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,342 |
s494374885 | p00728 | u675883677 | 1593223775 | Python | Python3 | py | Accepted | 20 | 5604 | 234 | while True:
n=int(input())
if n == 0:
break
else:
li1=[0]*n
#t=1
for t in range(n):
li1[t]=int(input())
s=int((sum(li1)-max(li1)-min(li1))/(n-2))
print(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,343 |
s939068767 | p00728 | u931171413 | 1593198503 | Python | Python3 | py | Accepted | 30 | 5600 | 343 | while True:
n=int(input())
if n==0:
break
else:
score=[0]*n
for i in range(n):
score[i]=int(input())
max=score[0]
min=score[0]
for i in range(1,n):
if max<score[i]:
max=score[i]
if min>score[i]:
min=score[i]
print(int((sum(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,344 |
s743148926 | p00728 | u412413216 | 1593188493 | Python | Python3 | py | Accepted | 30 | 5600 | 331 | list1=[]
while True:
n = int(input())
if n == 0:
break #n が 0 のときにループから抜ける
else:
for i in range(n):
j=int(input())
list1.append(j)
list1.remove(max(list1))
list1.remove(min(list1))
print(sum(list1)//len(list1))
list1=[]
| 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,345 |
s872860318 | p00728 | u296681340 | 1593156517 | Python | Python3 | py | Accepted | 30 | 5596 | 268 | while True:
goukei=0
max=0
min=1000
n=int(input())
if n==0:
break
else:
for i in range (n):
i=int(input())
if i>max:
max=i
if i<min:
min=i
goukei=goukei+i
heikin=(goukei-max-min)//(n-2)
print(heikin)
| 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,346 |
s774111658 | p00728 | u675781448 | 1593147340 | Python | Python3 | py | Accepted | 20 | 5604 | 281 | while True:
n = int(input())
if n == 0:
break
a, smin, smax=0, 1001, -1
for i in range(n):
s = int(input())
a += s
if s < smin:
smin = s
if s > smax:
smax = s
print((a-smin-smax)//(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,347 |
s044662828 | p00728 | u199192481 | 1593145914 | Python | Python3 | py | Accepted | 20 | 5600 | 854 | while True:
n = int(input())
if n == 0:
break
else:
intlist = []
minval = 1001
maxval = -1
for i in range(n): #calculate max and min values, create list of all values
a = int(input())
if a >= maxval:
maxval = a
if 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,348 |
s730087512 | p00728 | u577333013 | 1593142984 | Python | Python3 | py | Accepted | 30 | 5596 | 263 | while True:
n = int(input())
if n == 0:
break
else :
lista = [0]*n
for i in range (n):
lista[i] = int(input())
lista.remove(max(lista))
lista.remove(min(lista))
print(sum(lista)//len(lista))
| 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,349 |
s034967503 | p00728 | u563987420 | 1593142823 | Python | Python3 | py | Accepted | 20 | 5600 | 213 | while True:
n=int(input())
if n==0:
break
else:
li=[]
for i in range(n):
li.append(int(input()))
b=sum(li)-min(li)-max(li)
c=n-2
print(b//c)
| 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,350 |
s354662620 | p00728 | u611293015 | 1593141747 | Python | Python3 | py | Accepted | 30 | 5664 | 268 | import math
while True:
n=int(input())
if n==0:
break
else:
S_list=[]
for i in range(n):
score=int(input())
S_list.append(score)
S_list.remove(max(S_list))
S_list.remove(min(S_list))
print(math.floor(sum(S_list)/len(S_list)))
| 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,351 |
s304486421 | p00728 | u537939262 | 1593139419 | Python | Python3 | py | Accepted | 20 | 5592 | 190 | while True:
n =int(input())
if n == 0:
break
else:
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,352 |
s329231797 | p00728 | u854650608 | 1593138443 | Python | Python3 | py | Accepted | 20 | 5600 | 195 | while True:
n=int(input())
if n == 0:
break
else:
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,353 |
s766760453 | p00728 | u484657414 | 1593136811 | Python | Python3 | py | Accepted | 30 | 5600 | 191 | while True:
n=int(input())
if n == 0: break
else:
d=[]
for i in range(n):
d.append(int(input()))
print((sum(d)-max(d)-min(d))//(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,354 |
s469445432 | p00728 | u614847701 | 1592996515 | Python | Python3 | py | Accepted | 20 | 5600 | 550 | result = []
while True:
no_referee = int(input())
if no_referee == 0:
break
else:
sum_score = 0
max_score = 0
min_score = 1000
for i in range(no_referee):
score = int(input())
sum_score += score
if score > max_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,355 |
s130914723 | p00728 | u350481745 | 1592875691 | Python | Python3 | py | Accepted | 30 | 5604 | 236 | while True:
n=int(input())
s=[]
if n==0:
break
else:
for i in range(n):
s.append(int(input()))
s.sort()
del(s[0])
del(s[-1])
print(f'{sum(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,356 |
s765131840 | p00728 | u976648183 | 1592872567 | Python | Python3 | py | Accepted | 30 | 5592 | 268 | 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,357 |
s998596848 | p00728 | u644959375 | 1592820590 | Python | Python3 | py | Accepted | 30 | 5592 | 334 | n=int(input())
while n!=0:
total=0
saidai=None
saishou=None
for i in range(n):
s=int(input())
total+=s
if saidai is None or s>saidai:
saidai=s
if saishou is None or s<saishou:
saishou=s
print((total-saidai-saishou)//(n-2))
n=int(inp... | 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,358 |
s470190718 | p00728 | u661628543 | 1592809081 | Python | Python3 | py | Accepted | 30 | 5596 | 207 | while True:
n=int(input())
list=[]
if n==0:
break
for i in range(n):
list.append(int(input()))
list.sort()
ave=(sum(list)-list[0]-list[-1])//(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,359 |
s360950841 | p00728 | u053015104 | 1592806443 | Python | Python3 | py | Accepted | 30 | 5596 | 440 | while True:
n = int(input())#n=0は終わり
s = 0
if n==0:
break
else:
b=[]
for i in range(n):
a = int(input())#審判の点数
b.append((a))
b.sort()#全員分入力してからソート
b.pop(n-1)#listが崩れるからz-1から抜いていく
b.pop(0)
s=sum(b) #bのリストのI番目をたす
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,360 |
s135047884 | p00728 | u577978368 | 1592806317 | Python | Python3 | py | Accepted | 30 | 5600 | 244 | while True:
a=int(input())
x=[]
if a==0:
break
else:
for i in range(a):
y=int(input())
x.append(y)
b=min(x)
c=max(x)
ave=(sum(x)-b-c)/(a-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,361 |
s562141358 | p00728 | u138194441 | 1592804039 | Python | Python3 | py | Accepted | 20 | 5664 | 215 | import math
while True:
x = int(input())
if x == 0:
break
a = list(int(input()) for i in range(x))
a.sort()
del a[0]
del a[-1]
b= sum(a)/len(a)
print(math.floor(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,362 |
s383776412 | p00728 | u057249340 | 1592782938 | Python | Python3 | py | Accepted | 30 | 5664 | 250 | import math
while True:
n=int(input())
if n==0:
break
l=[]
for i in range(n):
l.append(int(input()))
slist=sorted(l)
del slist[0]
del slist[n-2]
x=sum(slist)/len(slist)
print(math.floor(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,363 |
s919542589 | p00728 | u826807985 | 1592702742 | Python | Python3 | py | Accepted | 20 | 5608 | 220 | while True:
n = int(input())
str_list = [int(input()) for _ in range(n)]
if n==0:
break
a = max(str_list)
b = min(str_list)
c = sum(str_list)
tensu = (c-a-b)//(n-2)
print(tensu)
| 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,364 |
s240376250 | p00728 | u251716708 | 1592578304 | Python | Python3 | py | Accepted | 30 | 5596 | 220 | while True:
n=int(input())
if n==0:break
s,vmax,vmin = 0,-1,1001
for i in range(n):
a = int(input())
vmax=max(vmax,a)
vmin=min(vmin,a)
s+=a
print((s-vmax-vmin)//(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,365 |
s707270480 | p00728 | u573698742 | 1592550393 | Python | Python3 | py | Accepted | 30 | 5600 | 196 | while True:
n=int(input())
if n == 0 : break
a,b,c=0,1001,-1
for i in range(n):
m=int(input())
b=min(b,m)
c=max(c,m)
a+=m
print((a-b-c)//(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,366 |
s024378668 | p00728 | u931484744 | 1592374412 | Python | Python3 | py | Accepted | 30 | 5592 | 302 | # coding: utf-8
# Your code here!
while True:
min = 1000
max = 0
sum = 0
n = int(input())
if n == 0:
break
for i in range(n):
s = int(input())
if s < min:
min = s
if s > max:
max = s
sum += s
print((sum - 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,367 |
s899244534 | p00728 | u497248335 | 1592317467 | Python | Python3 | py | Accepted | 20 | 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,368 |
s964501890 | p00728 | u108112600 | 1592280681 | Python | Python3 | py | Accepted | 30 | 5600 | 240 | while True:
n = int(input())
if n == 0:
break
nums = [int(input()) for _ in range(n)]
max_num = max(nums)
min_num = min(nums)
nums.remove(max_num)
nums.remove(min_num)
print(sum(nums) // len(nums))
| 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,369 |
s591683240 | p00728 | u397004753 | 1592270320 | Python | Python3 | py | Accepted | 20 | 5592 | 169 | while True:
n = int(input())
if n == 0:
break
score =[]
for i in range(n):
score.append(int(input()))
print((sum(score)-min(score)-max(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,370 |
s207024157 | p00728 | u673183698 | 1592267216 | Python | Python3 | py | Accepted | 30 | 5592 | 237 | while True :
n=int(input())
if n==0:break
ssum=0
smax=0
smin=1000
for i in range(n):
s=int(input())
ssum+=s
if smax<s : smax=s
if smin>s : smin=s
print((ssum-smax-smin)//(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,371 |
s680573918 | p00728 | u627612495 | 1592222767 | Python | Python3 | py | Accepted | 30 | 5596 | 292 | while True:
n = int(input())
if n > 0:
l = []
for i in range(n):
s = int(input())
l.append(s)
l.remove(max(l))
l.remove(min(l))
x = sum(l)
y = len(l)
print(int(x/y))
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,372 |
s424051353 | p00728 | u064625546 | 1592212264 | Python | Python3 | py | Accepted | 30 | 5592 | 206 | a=int(input())
while a!=0:
M=0
m=1000
sam=0
for i in range(a):
b=int(input())
sam+=b
M=max(M,b)
m=min(m,b)
print(int((sam-M-m)/(a-2)))
a=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,373 |
s894638945 | p00728 | u926092389 | 1592211369 | Python | Python3 | py | Accepted | 30 | 5600 | 215 | while True:
n = int(input())
if n==0: break
score=[int(input()) for _ in range(n)]
score.sort()
score.pop(-1)
score.pop(0)
s=sum(score)
n=len(score)
mean=s/n
print(int(mean))
| 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,374 |
s768501610 | p00728 | u444626963 | 1592206234 | Python | Python3 | py | Accepted | 20 | 5592 | 254 | for x in range(20):
a=int(input())
if a==0: break
lst = []
for x in range(a):
lst.append(int(input()))
b=min(lst)
c=max(lst)
lst.remove(b)
lst.remove(c)
d=sum(lst)
ave=d//(a-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,375 |
s937149904 | p00728 | u442912414 | 1592186060 | Python | Python3 | py | Accepted | 20 | 5596 | 171 | while True:
a = []
x = int(input())
if x == 0 :
break
for i in range(x):
a.append(int(input()))
print((sum(a)-max(a)-min(a))//(x-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,376 |
s769607121 | p00728 | u685887060 | 1592183950 | Python | Python3 | py | Accepted | 20 | 5604 | 219 | #(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)
d=(c-a-b)//(n-2)
print(d)
| 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,377 |
s323390462 | p00728 | u506949161 | 1592070803 | Python | Python3 | py | Accepted | 30 | 5588 | 234 | while True:
n=int(input())
if n==0:
break
s=0
vmin=1001
vmax=-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,378 |
s607443248 | p00728 | u838993229 | 1592040389 | 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,379 |
s530430266 | p00728 | u221550784 | 1591665873 | 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,380 |
s110226396 | p00728 | u918533241 | 1591665315 | Python | Python3 | py | Accepted | 30 | 5604 | 188 | while True:
n=int(input())
if n==0:
break
data=[int(input()) for _ in range(n)]
a=max(data)
b=min(data)
s=sum(data)
s=s-a-b
s=s//(n-2)
print(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,381 |
s608638253 | p00728 | u695568874 | 1591665055 | Python | Python3 | py | Accepted | 30 | 5596 | 211 | while True:
n=int(input())
if n==0:
break
a=[]
for i in range(n):
a.append(int(input()))
A=max(a)
B=min(a)
C=sum(a)
D=len(a)
E=C-A-B
F=D-2
print(E//F)
| 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,382 |
s470244238 | p00728 | u179629761 | 1591661972 | Python | Python3 | py | Accepted | 30 | 5600 | 199 | 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,383 |
s896741848 | p00728 | u511292942 | 1591624753 | Python | Python3 | py | Accepted | 30 | 5600 | 177 | while True:
n = int(input())
if n ==0:
break
x = [int(input()) for i in range(n)]
x.sort()
scr = (sum(x)-max(x)-min(x))//(n-2)
print(scr)
| 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,384 |
s159938144 | p00728 | u037263780 | 1591597909 | Python | Python3 | py | Accepted | 20 | 5596 | 208 | while True:
n=int(input())
if n==0:
break
x=[]
for i in range(n):
y=int(input())
x.append(y)
x.sort()
x.pop(n-1)
x.pop(0)
b=sum(x)//len(x)
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,385 |
s564778911 | p00728 | u711365732 | 1591594387 | Python | Python3 | py | Accepted | 30 | 5596 | 300 | i=0
while True:
n=int(input())
list=[]
for i in range(n):
s=int(input())
list.append((s))
if i==n-1:
list.sort()
list.pop(n-1)
list.pop(0)
ave = sum(list)//len(list)
print(ave)
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,386 |
s224694631 | p00728 | u919773430 | 1591594348 | Python | Python3 | py | Accepted | 30 | 5604 | 185 | while True:
A = int(int(input()))
if A == 0:
break
a = [int(input()) for i in range(A)]
x = min(a)
y = max(a)
z = (sum(a) - x - y)//(A-2)
print(z)
| 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,387 |
s970095519 | p00728 | u333382219 | 1591516130 | Python | Python3 | py | Accepted | 20 | 5600 | 132 | while True:
n = int(input())
if n == 0:
break
a = [int(input()) for i in range(n)]
print((sum(a)-min(a)-max(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,388 |
s625216661 | p00728 | u257570657 | 1591370961 | Python | Python3 | py | Accepted | 20 | 5600 | 251 | while True:
n=int(input())
if n==0:
break
i,min,max,a=0,1000,0,0
while i<n:
s=int(input())
a+=s
if min>s:
min=s
if max<s:
max=s
i+=1
print((a-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,389 |
s504244372 | p00728 | u874049078 | 1591163675 | Python | Python3 | py | Accepted | 30 | 5600 | 255 | while True:
a = int(input())
if a == 0:
break
b = [int(input()) for i in range(a)]
b.sort()
bmin = min(b)
bmax = max(b)
bsum = sum(b)
print((bsum-bmin-bmax)//(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,390 |
s785355918 | p00728 | u206985725 | 1591104143 | Python | Python3 | py | Accepted | 30 | 5660 | 372 | import math
while True:
x=[]
y=0
n=int(input())
if n==0:
break
for i in range(n):
s=int(input())
x+=[s]
#print(x)
x.remove(max(x))
#print(x)
x.remove(min(x))
#print(x)
for j in range(n-2):
y+=x[j]
#print(y)
prin... | 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,391 |
s564431451 | p00728 | u371026526 | 1590990599 | Python | Python3 | py | Accepted | 20 | 5604 | 161 | while True:
n = int(input())
if n == 0: break
s=[int(input()) for i in range(n)]
s.sort()
point = (sum(s)-max(s)-min(s))//(len(s)-2)
print(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,392 |
s842333879 | p00728 | u795882061 | 1590913431 | Python | Python3 | py | Accepted | 20 | 5624 | 220 | n = int(input())
s = 0
while n != 0:
a = [int(input()) for i in range(n)]
b = sorted(a)
for i in range(1,n-1):
s += b[i]
c = s//(n-2)
print('{:.0f}'.format(c))
n = int(input())
s = 0
| 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,393 |
s192885557 | p00728 | u240091169 | 1590740669 | 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,394 |
s860800031 | p00728 | u695386605 | 1590577847 | Python | Python3 | py | Accepted | 30 | 5600 | 198 | while True:
n = int(input())
if n == 0:
break
data = [int(input()) for z in range(n)]
a = min(data)
b = max(data)
c = sum(data) - a - b
print(c//(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,395 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.