結果

問題 No.91 赤、緑、青の石
ユーザー rlangevinrlangevin
提出日時 2023-01-22 01:51:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 235 bytes
コンパイル時間 1,005 ms
コンパイル使用メモリ 87,344 KB
実行使用メモリ 71,712 KB
最終ジャッジ日時 2023-09-06 12:31:08
合計ジャッジ時間 4,269 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 71 ms
71,436 KB
testcase_08 AC 69 ms
71,232 KB
testcase_09 AC 69 ms
71,240 KB
testcase_10 AC 70 ms
71,408 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 70 ms
71,472 KB
testcase_17 AC 71 ms
71,236 KB
testcase_18 AC 72 ms
71,448 KB
testcase_19 AC 70 ms
71,584 KB
testcase_20 AC 70 ms
71,404 KB
testcase_21 AC 70 ms
71,408 KB
testcase_22 AC 70 ms
71,404 KB
testcase_23 AC 70 ms
71,244 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 69 ms
71,472 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 69 ms
71,424 KB
testcase_31 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def f(a, b, c):
    L = [a, b, c]
    L.sort()
    v = (L[-1] - L[0])//3
    L[-1] -= 2 * v
    L[0] += v
    return L[0], L[1], L[2]

R, G, B = map(int, input().split())
for i in range(10):
    R, G, B = f(R, G, B)
print(min(R, G, B))
0