結果

問題 No.91 赤、緑、青の石
ユーザー Watson
提出日時 2017-07-28 16:13:14
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 1,844 ms / 5,000 ms
コード長 329 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-06-24 07:09:04
合計ジャッジ時間 19,503 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

stn = [int(i) for i in input().split()]
stn.sort()
acc = 0
if stn[0] >= 1:
    acc += stn[0]
    stn[2] -= stn[0]
    stn[1] -= stn[0]
    stn[0] -= stn[0]
    stn.sort()
while stn[1] >= 1 and stn[2] >= 3:
    stn[1] -= 1
    stn[2] -= 3
    stn.sort()
    acc += 1
while stn[2] >= 5:
    stn[2] -= 5
    acc += 1    
print(acc)
0