結果

問題 No.2110 012 Matching
ユーザー ニックネームニックネーム
提出日時 2022-10-28 21:39:16
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 785 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 516 ms
コンパイル使用メモリ 10,492 KB
実行使用メモリ 7,772 KB
最終ジャッジ日時 2023-09-20 04:29:39
合計ジャッジ時間 6,455 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,772 KB
testcase_01 AC 211 ms
7,684 KB
testcase_02 AC 518 ms
7,768 KB
testcase_03 AC 353 ms
7,688 KB
testcase_04 AC 694 ms
7,700 KB
testcase_05 AC 492 ms
7,768 KB
testcase_06 AC 470 ms
7,752 KB
testcase_07 AC 780 ms
7,752 KB
testcase_08 AC 41 ms
7,696 KB
testcase_09 AC 126 ms
7,712 KB
testcase_10 AC 785 ms
7,756 KB
testcase_11 AC 16 ms
7,760 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    a, b, c = map(int, input().split())
    x = min(a, c); a -= x; c -= x
    y = b//2; b %= 2
    print(2*x+2*y+min(a, b)+c//2)
0