結果
問題 | No.2110 012 Matching |
ユーザー |
![]() |
提出日時 | 2022-10-28 21:30:57 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 472 ms / 2,000 ms |
コード長 | 437 bytes |
コンパイル時間 | 103 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-07-06 00:32:33 |
合計ジャッジ時間 | 4,324 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 11 |
ソースコード
import sysinput = sys.stdin.buffer.readlinesys.setrecursionlimit(10 ** 7)def debug(*arg, sep=" ", end="\n"):print(*arg, sep=sep, end=end, file=sys.stderr)T = int(input())for _ in range(T):a, b, c = map(int, input().split())ans = 0ans += 2 * (b // 2)b %= 2d = min(a, c)ans += 2 * da -= dc -= dans += 1 * (c // 2)c %= 2d = min(a, b)ans += 1 * dprint(ans)