結果

問題 No.91 赤、緑、青の石
ユーザー steek79steek79
提出日時 2015-10-16 15:40:54
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 306 bytes
コンパイル時間 411 ms
コンパイル使用メモリ 6,552 KB
実行使用メモリ 11,588 KB
最終ジャッジ日時 2023-09-28 22:06:14
合計ジャッジ時間 31,775 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 AC 3,840 ms
5,836 KB
testcase_02 AC 2,370 ms
5,880 KB
testcase_03 AC 4,323 ms
6,008 KB
testcase_04 AC 2,102 ms
5,840 KB
testcase_05 TLE -
testcase_06 AC 1,417 ms
6,000 KB
testcase_07 AC 11 ms
6,000 KB
testcase_08 AC 11 ms
6,020 KB
testcase_09 AC 11 ms
5,952 KB
testcase_10 AC 11 ms
5,948 KB
testcase_11 AC 1,495 ms
5,900 KB
testcase_12 AC 4,813 ms
5,884 KB
testcase_13 TLE -
testcase_14 AC 3,513 ms
6,000 KB
testcase_15 TLE -
testcase_16 AC 12 ms
5,948 KB
testcase_17 AC 11 ms
5,768 KB
testcase_18 AC 11 ms
5,840 KB
testcase_19 AC 11 ms
5,772 KB
testcase_20 AC 11 ms
5,812 KB
testcase_21 AC 11 ms
5,956 KB
testcase_22 AC 12 ms
5,884 KB
testcase_23 AC 11 ms
6,000 KB
testcase_24 AC 11 ms
5,952 KB
testcase_25 TLE -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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