結果
| 問題 |
No.2110 012 Matching
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-28 21:43:38 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 139 ms / 2,000 ms |
| コード長 | 299 bytes |
| コンパイル時間 | 157 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 76,928 KB |
| 最終ジャッジ日時 | 2024-07-06 00:49:28 |
| 合計ジャッジ時間 | 2,505 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 11 |
ソースコード
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
ans += B//2*2
if A>0 and B%2==1:
ans += 1
print(ans)