結果

問題 No.2110 012 Matching
ユーザー Noah CollinsNoah Collins
提出日時 2022-11-24 15:21:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 248 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 9,984 KB
最終ジャッジ日時 2024-04-08 12:39:25
合計ジャッジ時間 6,142 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
9,984 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 WA -
権限があれば一括ダウンロードができます

ソースコード

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:
        n+=1
    print(n)
0