結果

問題 No.91 赤、緑、青の石
コンテスト
ユーザー steek79
提出日時 2015-10-16 15:40:54
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 2,117 ms / 5,000 ms
コード長 306 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 144 ms
コンパイル使用メモリ 77,336 KB
実行使用メモリ 78,796 KB
最終ジャッジ日時 2025-12-07 12:23:36
合計ジャッジ時間 24,255 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

ingre = map(int, raw_input().split())

ans = 0

while True:
    make = min(ingre)
    ans += make
    ingre = [i - make for i in ingre]    
    if min(ingre)==0:
        if sum(ingre) <3: break
        else: 
            ingre[ingre.index(max(ingre))] -= 2
            ingre[ingre.index(0)] += 1

print ans
0