結果

問題 No.91 赤、緑、青の石
ユーザー akanayaakanaya
提出日時 2020-03-31 14:59:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 455 ms / 5,000 ms
コード長 203 bytes
コンパイル時間 1,252 ms
コンパイル使用メモリ 86,992 KB
実行使用メモリ 76,704 KB
最終ジャッジ日時 2023-09-06 12:48:21
合計ジャッジ時間 8,419 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 337 ms
76,588 KB
testcase_01 AC 249 ms
76,500 KB
testcase_02 AC 180 ms
76,564 KB
testcase_03 AC 268 ms
76,296 KB
testcase_04 AC 170 ms
76,560 KB
testcase_05 AC 300 ms
76,624 KB
testcase_06 AC 140 ms
76,472 KB
testcase_07 AC 72 ms
71,056 KB
testcase_08 AC 70 ms
71,288 KB
testcase_09 AC 71 ms
71,440 KB
testcase_10 AC 70 ms
71,320 KB
testcase_11 AC 141 ms
76,484 KB
testcase_12 AC 285 ms
76,680 KB
testcase_13 AC 315 ms
76,556 KB
testcase_14 AC 227 ms
76,544 KB
testcase_15 AC 328 ms
76,492 KB
testcase_16 AC 73 ms
71,164 KB
testcase_17 AC 73 ms
71,200 KB
testcase_18 AC 72 ms
71,392 KB
testcase_19 AC 72 ms
71,284 KB
testcase_20 AC 72 ms
71,328 KB
testcase_21 AC 72 ms
71,440 KB
testcase_22 AC 72 ms
71,432 KB
testcase_23 AC 72 ms
71,204 KB
testcase_24 AC 71 ms
71,160 KB
testcase_25 AC 455 ms
76,704 KB
testcase_26 AC 423 ms
76,508 KB
testcase_27 AC 72 ms
71,396 KB
testcase_28 AC 108 ms
76,580 KB
testcase_29 AC 145 ms
76,516 KB
testcase_30 AC 316 ms
76,564 KB
testcase_31 AC 409 ms
76,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

rgb = list(map(int, input().split(' ')))

df = float('inf')
while(True):
    rgb = sorted(rgb)
    df = rgb[2] - rgb[0]
    if df < 2:
        break
    rgb[2] -= 2
    rgb[0] += 1
    
print(min(rgb))

0