結果

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

ソースコード

diff #

def solve():
    a,b,c = map(int,input().split())
    ans = 0

    ac = min(a,c)
    ans += ac*2
    a -= ac
    c -= ac
    ans += b//2*2
    b %= 2
    ab = min(a,b)
    ans += ab
    ans += c//2

    print(ans)

t = int(input())
for _ in range(t):
    solve()
0