結果
問題 | No.2110 012 Matching |
ユーザー | Noah Collins |
提出日時 | 2022-11-24 15:21:09 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 271 bytes |
コンパイル時間 | 117 ms |
コンパイル使用メモリ | 11,904 KB |
実行使用メモリ | 15,616 KB |
最終ジャッジ日時 | 2024-04-08 12:38:58 |
合計ジャッジ時間 | 4,931 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 33 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 | - |
ソースコード
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 s+=[n] for i in s: print(i)