結果
| 問題 |
No.2110 012 Matching
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-28 21:48:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 332 ms / 2,000 ms |
| コード長 | 328 bytes |
| コンパイル時間 | 326 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 76,416 KB |
| 最終ジャッジ日時 | 2024-07-06 00:54:16 |
| 合計ジャッジ時間 | 3,643 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 11 |
ソースコード
T = int(input())
for _ in range(T):
A,B,C = map(int,input().split())
ans = 0
ans += B - (B%2)
B = B%2
if C <= A:
A -= C
ans += 2*C
else:
print(ans+2*A+((C-A)//2))
continue
if B <= A:
print(ans+B)
continue
else:
print(ans+A)
continue