結果
問題 | No.2110 012 Matching |
ユーザー |
![]() |
提出日時 | 2022-10-28 22:57:45 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 306 ms / 2,000 ms |
コード長 | 277 bytes |
コンパイル時間 | 345 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 76,552 KB |
最終ジャッジ日時 | 2024-07-06 02:11:19 |
合計ジャッジ時間 | 4,200 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 11 |
ソースコード
t = int(input()) for i in range(t): c,a,b = map(int,input().split()) res = 0 res = a//2 * 2 a -= a//2 * 2 min_bc = min(b,c) res += min_bc * 2 b -= min_bc c -= min_bc if b:res += b//2 if c:res += min(a,c) print(res) # print(a,b,c)