結果

問題 No.920 あかあお
ユーザー matriematrie
提出日時 2020-11-28 23:50:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 102 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,636 KB
実行使用メモリ 7,964 KB
最終ジャッジ日時 2023-10-11 02:03:56
合計ジャッジ時間 1,052 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,808 KB
testcase_01 AC 18 ms
7,960 KB
testcase_02 AC 15 ms
7,964 KB
testcase_03 AC 15 ms
7,816 KB
testcase_04 AC 15 ms
7,844 KB
testcase_05 AC 15 ms
7,776 KB
testcase_06 AC 15 ms
7,908 KB
testcase_07 AC 16 ms
7,856 KB
testcase_08 AC 16 ms
7,944 KB
testcase_09 AC 15 ms
7,800 KB
testcase_10 AC 15 ms
7,920 KB
testcase_11 AC 15 ms
7,860 KB
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

r,b,w = map(int, input().split())
w -= abs(r-b)
p = max(r,b) + w//2
if w<0 and w%2==1: p -= 1
print(p)
0