結果

問題 No.2110 012 Matching
ユーザー titiatitia
提出日時 2022-10-28 21:35:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 867 ms / 2,000 ms
コード長 269 bytes
コンパイル時間 252 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 7,812 KB
最終ジャッジ日時 2023-09-20 04:24:16
合計ジャッジ時間 6,573 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,676 KB
testcase_01 AC 227 ms
7,720 KB
testcase_02 AC 573 ms
7,696 KB
testcase_03 AC 385 ms
7,804 KB
testcase_04 AC 760 ms
7,800 KB
testcase_05 AC 536 ms
7,804 KB
testcase_06 AC 522 ms
7,752 KB
testcase_07 AC 867 ms
7,768 KB
testcase_08 AC 43 ms
7,740 KB
testcase_09 AC 136 ms
7,764 KB
testcase_10 AC 864 ms
7,812 KB
testcase_11 AC 15 ms
7,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
for tests in range(T):
    A,B,C=map(int,input().split())

    ANS=0
    MIN=min(A,C)
    ANS+=2*MIN
    A-=MIN
    C-=MIN

    ANS+=2*(B//2)
    B-=B//2*2


    ANS+=C//2
    C-=C//2*2

    MIN=min(A,B)
    ANS+=MIN
    A-=MIN
    B-=MIN

    print(ANS)
0