結果
問題 | No.2110 012 Matching |
ユーザー |
![]() |
提出日時 | 2022-10-28 22:15:11 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 329 bytes |
コンパイル時間 | 188 ms |
コンパイル使用メモリ | 82,604 KB |
実行使用メモリ | 76,516 KB |
最終ジャッジ日時 | 2024-07-06 01:25:11 |
合計ジャッジ時間 | 2,286 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 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 c > 0:res += c // 2c %= 2res += (b + 2 * c) % 3print(res)