結果

問題 No.91 赤、緑、青の石
ユーザー lloyzlloyz
提出日時 2022-06-14 21:38:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 645 ms / 5,000 ms
コード長 263 bytes
コンパイル時間 526 ms
コンパイル使用メモリ 81,964 KB
実行使用メモリ 75,508 KB
最終ジャッジ日時 2024-04-14 03:13:55
合計ジャッジ時間 8,896 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 457 ms
75,236 KB
testcase_01 AC 310 ms
75,428 KB
testcase_02 AC 208 ms
75,208 KB
testcase_03 AC 349 ms
75,404 KB
testcase_04 AC 191 ms
75,172 KB
testcase_05 AC 403 ms
74,964 KB
testcase_06 AC 131 ms
75,448 KB
testcase_07 AC 36 ms
52,124 KB
testcase_08 AC 35 ms
52,816 KB
testcase_09 AC 36 ms
52,432 KB
testcase_10 AC 36 ms
52,552 KB
testcase_11 AC 146 ms
75,320 KB
testcase_12 AC 375 ms
75,508 KB
testcase_13 AC 412 ms
74,864 KB
testcase_14 AC 284 ms
75,412 KB
testcase_15 AC 434 ms
74,912 KB
testcase_16 AC 35 ms
53,348 KB
testcase_17 AC 37 ms
52,900 KB
testcase_18 AC 37 ms
52,112 KB
testcase_19 AC 35 ms
52,620 KB
testcase_20 AC 36 ms
52,252 KB
testcase_21 AC 35 ms
53,412 KB
testcase_22 AC 36 ms
52,344 KB
testcase_23 AC 35 ms
52,924 KB
testcase_24 AC 37 ms
51,948 KB
testcase_25 AC 645 ms
75,304 KB
testcase_26 AC 600 ms
75,404 KB
testcase_27 AC 35 ms
52,332 KB
testcase_28 AC 82 ms
75,192 KB
testcase_29 AC 127 ms
75,164 KB
testcase_30 AC 438 ms
75,100 KB
testcase_31 AC 580 ms
75,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

L = list(map(int, input().split()))

ans = 0
while True:
    L.sort()
    if L[0] > 0:
        ans += L[0]
        L[1] -= L[0]
        L[2] -= L[0]
        L[0] = 0
    else:
        if L[2] <= 1:
            break
        L[2] -= 2
        L[0] += 1
print(ans)
0