結果

問題 No.2110 012 Matching
ユーザー nephrologist
提出日時 2022-10-28 22:13:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 287 bytes
コンパイル時間 265 ms
コンパイル使用メモリ 82,368 KB
実行使用メモリ 76,768 KB
最終ジャッジ日時 2024-07-06 01:23:06
合計ジャッジ時間 2,211 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

input = sys.stdin.buffer.readline

t = int(input())

for i in range(t):
    a, b, c = map(int, input().split())
    res = 0
    res += 2 * (b // 2)
    b %= 2
    res += 2 * min(a, c)
    a, c = a - min(a, c), c - min(a, c)
    if c > 0:
        res += c // 2
    print(res)
0