結果
問題 | No.2110 012 Matching |
ユーザー | roaris |
提出日時 | 2022-10-28 21:41:55 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 307 bytes |
コンパイル時間 | 1,213 ms |
コンパイル使用メモリ | 87,160 KB |
実行使用メモリ | 78,312 KB |
最終ジャッジ日時 | 2023-09-20 04:33:49 |
合計ジャッジ時間 | 3,609 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 97 ms
71,660 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 96 ms
71,548 KB |
ソースコード
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)