結果
| 問題 |
No.2110 012 Matching
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-11-24 15:25:09 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 257 bytes |
| コンパイル時間 | 169 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-01 06:10:47 |
| 合計ジャッジ時間 | 5,827 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 1 WA * 10 |
ソースコード
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)