結果

問題 No.2110 012 Matching
ユーザー pluto77pluto77
提出日時 2023-01-16 14:43:37
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 806 ms / 2,000 ms
コード長 160 bytes
コンパイル時間 417 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 7,884 KB
最終ジャッジ日時 2023-08-29 21:51:50
合計ジャッジ時間 8,148 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,808 KB
testcase_01 AC 210 ms
7,852 KB
testcase_02 AC 535 ms
7,828 KB
testcase_03 AC 363 ms
7,852 KB
testcase_04 AC 711 ms
7,828 KB
testcase_05 AC 493 ms
7,884 KB
testcase_06 AC 487 ms
7,844 KB
testcase_07 AC 798 ms
7,832 KB
testcase_08 AC 41 ms
7,836 KB
testcase_09 AC 128 ms
7,780 KB
testcase_10 AC 806 ms
7,852 KB
testcase_11 AC 17 ms
7,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
for i in range(T):
 A,B,C=map(int,input().split())
 res=0
 x=min(A,C)
 res+=x*2+(B//2)*2
 B%=2
 A-=x
 C-=x

 y=min(A,B)
 res+=y+C//2
 print(res)
0