結果
| 問題 |
No.2110 012 Matching
|
| コンテスト | |
| ユーザー |
とりゐ
|
| 提出日時 | 2022-10-28 22:11:55 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 160 ms / 2,000 ms |
| コード長 | 282 bytes |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 77,096 KB |
| 最終ジャッジ日時 | 2024-07-06 01:21:47 |
| 合計ジャッジ時間 | 2,937 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 11 |
ソースコード
from sys import stdin
input=lambda :stdin.readline()[:-1]
def solve():
a,b,c=map(int,input().split())
ans=0
x=min(a,c)
ans+=2*x
c-=x
a-=x
ans+=2*(b//2)
b%=2
ans+=(c//2)
if b>0 and a>0:
ans+=1
print(ans)
for _ in range(int(input())):
solve()
とりゐ