結果

問題 No.2390 Udon Coupon (Hard)
ユーザー 👑 MizarMizar
提出日時 2023-06-30 09:03:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 346 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 10,880 KB
実行使用メモリ 7,948 KB
最終ジャッジ日時 2023-09-26 08:04:16
合計ジャッジ時間 33,911 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,828 KB
testcase_01 AC 17 ms
7,804 KB
testcase_02 AC 20 ms
7,700 KB
testcase_03 AC 22 ms
7,832 KB
testcase_04 AC 23 ms
7,832 KB
testcase_05 AC 124 ms
7,828 KB
testcase_06 AC 16 ms
7,764 KB
testcase_07 AC 15 ms
7,752 KB
testcase_08 AC 16 ms
7,900 KB
testcase_09 TLE -
testcase_10 AC 19 ms
7,776 KB
testcase_11 AC 16 ms
7,928 KB
testcase_12 AC 20 ms
7,892 KB
testcase_13 AC 21 ms
7,800 KB
testcase_14 AC 21 ms
7,696 KB
testcase_15 AC 17 ms
7,808 KB
testcase_16 AC 19 ms
7,764 KB
testcase_17 AC 18 ms
7,696 KB
testcase_18 AC 20 ms
7,844 KB
testcase_19 AC 20 ms
7,856 KB
testcase_20 AC 16 ms
7,696 KB
testcase_21 AC 16 ms
7,692 KB
testcase_22 AC 22 ms
7,828 KB
testcase_23 AC 23 ms
7,768 KB
testcase_24 AC 516 ms
7,836 KB
testcase_25 AC 547 ms
7,848 KB
testcase_26 AC 519 ms
7,748 KB
testcase_27 AC 547 ms
7,776 KB
testcase_28 AC 482 ms
7,912 KB
testcase_29 AC 1,563 ms
7,748 KB
testcase_30 AC 1,359 ms
7,784 KB
testcase_31 AC 1,592 ms
7,932 KB
testcase_32 AC 1,543 ms
7,892 KB
testcase_33 AC 1,514 ms
7,800 KB
testcase_34 TLE -
testcase_35 TLE -
testcase_36 TLE -
testcase_37 TLE -
testcase_38 TLE -
testcase_39 AC 662 ms
7,900 KB
testcase_40 AC 490 ms
7,776 KB
testcase_41 AC 621 ms
7,772 KB
testcase_42 AC 490 ms
7,828 KB
testcase_43 AC 664 ms
7,752 KB
testcase_44 AC 507 ms
7,696 KB
testcase_45 AC 384 ms
7,828 KB
testcase_46 AC 216 ms
7,776 KB
testcase_47 AC 303 ms
7,772 KB
testcase_48 AC 599 ms
7,852 KB
testcase_49 AC 16 ms
7,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ab = [list(map(int, input().split())) for _ in range(3)] * 2
print(
	max(
		max(
			max(
				dj // ap * bp + ibq + jbr
				for jbr, dj in zip(range(0, ap * br, br), range(di, 0, -ar))
			)
			for ibq, di in zip(range(0, ap * bq, bq), range(n, 0, -aq))
		)
		for [[ap, bp], [aq, bq], [ar, br]] in [ab[0:3], ab[1:4], ab[2:5]]
	)
)
0