結果

問題 No.394 ハーフパイプ(1)
ユーザー AREIDO2AREIDO2
提出日時 2016-08-23 06:03:29
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 342 bytes
コンパイル時間 48 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-04-25 11:50:15
合計ジャッジ時間 676 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
6,272 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 9 ms
6,272 KB
testcase_04 AC 10 ms
6,144 KB
testcase_05 WA -
testcase_06 AC 11 ms
6,272 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 11 ms
6,144 KB
testcase_10 AC 10 ms
6,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python

S = map(int,raw_input().split())
SL = len(S)

max = 0
min =101
for i in range(0,SL):
     if S[i] > max:
          max = S[i]
     if S[i] < min :
          min = S[i]

calc = 0
for i in range(0,SL):
     if S[i] != max and S[i] != min:
          calc = calc + S[i]

calc2 = float(calc) / (SL - 2)
print '%0.2f' % calc2
0