結果
問題 | No.2110 012 Matching |
ユーザー |
![]() |
提出日時 | 2022-10-28 22:17:23 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 113 ms / 2,000 ms |
コード長 | 355 bytes |
コンパイル時間 | 255 ms |
コンパイル使用メモリ | 82,184 KB |
実行使用メモリ | 76,412 KB |
最終ジャッジ日時 | 2024-07-06 01:27:50 |
合計ジャッジ時間 | 2,528 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 11 |
ソースコード
import sysinput = sys.stdin.buffer.readlinet = int(input())for i in range(t):a, b, c = map(int, input().split())res = 0res += 2 * (b // 2)b %= 2res += 2 * min(a, c)a, c = a - min(a, c), c - min(a, c)if a == 0:res += c // 2c %= 2elif c == 0:if b:res += bprint(res)