結果

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

テストケース

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

ソースコード

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