結果

問題 No.2110 012 Matching
ユーザー 👑 horiesinitihoriesiniti
提出日時 2023-04-22 23:02:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 813 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-25 00:49:43
合計ジャッジ時間 6,947 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
10,752 KB
testcase_01 AC 235 ms
10,752 KB
testcase_02 AC 558 ms
10,624 KB
testcase_03 AC 379 ms
10,752 KB
testcase_04 AC 723 ms
10,752 KB
testcase_05 AC 523 ms
10,880 KB
testcase_06 AC 488 ms
10,624 KB
testcase_07 AC 811 ms
10,624 KB
testcase_08 AC 57 ms
10,624 KB
testcase_09 AC 147 ms
10,752 KB
testcase_10 AC 813 ms
10,624 KB
testcase_11 AC 32 ms
10,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def f():
	a,b,c=map(int,input().split())
	ans=0
	d1=min(a,c)
	ans=d1*2
	a-=d1
	c-=d1
	ans+=b//2*2+c//2
	b=b%2
	ans+=min(a,b)
	print(ans)
m=int(input())
for _ in range(m):
	f()
0