結果

問題 No.91 赤、緑、青の石
ユーザー c-yanc-yan
提出日時 2020-12-27 00:47:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 305 bytes
コンパイル時間 259 ms
コンパイル使用メモリ 11,792 KB
実行使用メモリ 14,408 KB
最終ジャッジ日時 2023-10-25 09:34:32
合計ジャッジ時間 49,361 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2,803 ms
10,084 KB
testcase_01 AC 1,828 ms
10,084 KB
testcase_02 AC 3,798 ms
10,084 KB
testcase_03 AC 2,339 ms
10,084 KB
testcase_04 AC 4,063 ms
10,084 KB
testcase_05 AC 2,163 ms
10,084 KB
testcase_06 AC 2,081 ms
10,084 KB
testcase_07 AC 27 ms
10,084 KB
testcase_08 AC 28 ms
10,084 KB
testcase_09 AC 27 ms
10,084 KB
testcase_10 AC 28 ms
10,084 KB
testcase_11 AC 4,130 ms
10,084 KB
testcase_12 AC 2,606 ms
10,084 KB
testcase_13 AC 1,683 ms
10,084 KB
testcase_14 AC 2,437 ms
10,084 KB
testcase_15 AC 3,082 ms
10,084 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 30 ms
10,084 KB
testcase_19 AC 30 ms
10,084 KB
testcase_20 AC 31 ms
10,084 KB
testcase_21 AC 29 ms
10,084 KB
testcase_22 AC 29 ms
10,084 KB
testcase_23 AC 28 ms
10,084 KB
testcase_24 AC 28 ms
10,084 KB
testcase_25 AC 2,803 ms
10,084 KB
testcase_26 AC 2,591 ms
10,084 KB
testcase_27 TLE -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

R, G, B = map(int, input().split())

a = [R, G, B]


def is_ok(n):
    m = 0
    p = 0
    for x in a:
        if x - n >= 0:
            p += (x - n) // 2
        else:
            m += n - x
    return p >= m


for i in range(1, max(a) + 1):
    if is_ok(i):
        continue
    print(i - 1)
    break
0