結果

問題 No.2110 012 Matching
ユーザー Noah Collins
提出日時 2022-11-24 15:21:56
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 248 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-10-01 06:09:19
合計ジャッジ時間 6,315 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 11
権限があれば一括ダウンロードができます

ソースコード

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