結果

問題 No.2110 012 Matching
ユーザー Noah CollinsNoah Collins
提出日時 2022-11-24 15:30:20
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 257 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 10,764 KB
実行使用メモリ 7,960 KB
最終ジャッジ日時 2023-07-24 10:48:14
合計ジャッジ時間 6,218 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,764 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 15 ms
7,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

p=int(input())
s=[]
for i in range(p):
    a,b,c=map(int,input().split())
    n=0
    if b>1:
        n+=b
        b%=2
    h=min([a,c])
    n+=h*2
    a-=h
    c-=h
    if a==0:
        n+=c//2
        c%=2
    elif c==0 and b==1:
        n+=1
    print(n)
0