結果
問題 | No.2110 012 Matching |
ユーザー |
![]() |
提出日時 | 2022-10-28 21:41:55 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 307 bytes |
コンパイル時間 | 266 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 77,184 KB |
最終ジャッジ日時 | 2024-07-06 00:48:07 |
合計ジャッジ時間 | 2,326 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 10 |
ソースコード
import sys input = sys.stdin.readline from collections import * for _ in range(int(input())): A, B, C = map(int, input().split()) cnt02 = min(A, C) ans = 2*cnt02 A -= cnt02 C -= cnt02 ans += C//2 cnt01 = min(A, B) ans += cnt01 B -= cnt01 ans += B//2*2 print(ans)