結果
問題 | No.5018 Let's Make a Best-seller Book |
ユーザー | square1001 |
提出日時 | 2023-10-01 21:18:53 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 51 ms / 400 ms |
コード長 | 798 bytes |
コンパイル時間 | 189 ms |
コンパイル使用メモリ | 10,896 KB |
実行使用メモリ | 24,408 KB |
スコア | 54,856 |
平均クエリ数 | 52.00 |
最終ジャッジ日時 | 2023-10-01 21:19:04 |
合計ジャッジ時間 | 10,900 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
純コード判定しない問題か言語 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 50 ms
23,976 KB |
testcase_01 | AC | 47 ms
23,464 KB |
testcase_02 | AC | 45 ms
23,688 KB |
testcase_03 | AC | 49 ms
23,552 KB |
testcase_04 | AC | 45 ms
24,036 KB |
testcase_05 | AC | 45 ms
24,396 KB |
testcase_06 | AC | 45 ms
23,544 KB |
testcase_07 | AC | 44 ms
23,464 KB |
testcase_08 | AC | 45 ms
23,664 KB |
testcase_09 | AC | 44 ms
23,652 KB |
testcase_10 | AC | 45 ms
23,832 KB |
testcase_11 | AC | 45 ms
23,560 KB |
testcase_12 | AC | 45 ms
24,036 KB |
testcase_13 | AC | 44 ms
23,664 KB |
testcase_14 | AC | 45 ms
23,780 KB |
testcase_15 | AC | 45 ms
23,432 KB |
testcase_16 | AC | 45 ms
24,024 KB |
testcase_17 | AC | 47 ms
24,408 KB |
testcase_18 | AC | 46 ms
24,024 KB |
testcase_19 | AC | 45 ms
24,036 KB |
testcase_20 | AC | 45 ms
24,276 KB |
testcase_21 | AC | 45 ms
23,736 KB |
testcase_22 | AC | 46 ms
24,012 KB |
testcase_23 | AC | 45 ms
23,640 KB |
testcase_24 | AC | 46 ms
24,396 KB |
testcase_25 | AC | 45 ms
23,640 KB |
testcase_26 | AC | 45 ms
23,652 KB |
testcase_27 | AC | 45 ms
23,820 KB |
testcase_28 | AC | 46 ms
23,640 KB |
testcase_29 | AC | 46 ms
24,264 KB |
testcase_30 | AC | 43 ms
24,408 KB |
testcase_31 | AC | 44 ms
23,692 KB |
testcase_32 | AC | 46 ms
24,396 KB |
testcase_33 | AC | 45 ms
23,628 KB |
testcase_34 | AC | 45 ms
24,384 KB |
testcase_35 | AC | 44 ms
23,652 KB |
testcase_36 | AC | 44 ms
23,736 KB |
testcase_37 | AC | 45 ms
23,524 KB |
testcase_38 | AC | 44 ms
23,460 KB |
testcase_39 | AC | 45 ms
23,572 KB |
testcase_40 | AC | 45 ms
23,688 KB |
testcase_41 | AC | 44 ms
24,024 KB |
testcase_42 | AC | 45 ms
23,548 KB |
testcase_43 | AC | 46 ms
23,832 KB |
testcase_44 | AC | 49 ms
24,276 KB |
testcase_45 | AC | 45 ms
23,400 KB |
testcase_46 | AC | 45 ms
23,532 KB |
testcase_47 | AC | 45 ms
24,048 KB |
testcase_48 | AC | 44 ms
23,700 KB |
testcase_49 | AC | 45 ms
24,036 KB |
testcase_50 | AC | 45 ms
23,428 KB |
testcase_51 | AC | 45 ms
23,756 KB |
testcase_52 | AC | 46 ms
24,348 KB |
testcase_53 | AC | 45 ms
24,336 KB |
testcase_54 | AC | 45 ms
24,348 KB |
testcase_55 | AC | 45 ms
23,640 KB |
testcase_56 | AC | 45 ms
24,024 KB |
testcase_57 | AC | 45 ms
24,360 KB |
testcase_58 | AC | 45 ms
23,892 KB |
testcase_59 | AC | 45 ms
24,036 KB |
testcase_60 | AC | 45 ms
24,276 KB |
testcase_61 | AC | 44 ms
24,024 KB |
testcase_62 | AC | 45 ms
24,036 KB |
testcase_63 | AC | 46 ms
24,336 KB |
testcase_64 | AC | 46 ms
24,060 KB |
testcase_65 | AC | 44 ms
23,664 KB |
testcase_66 | AC | 45 ms
24,048 KB |
testcase_67 | AC | 51 ms
23,724 KB |
testcase_68 | AC | 45 ms
23,392 KB |
testcase_69 | AC | 45 ms
23,496 KB |
testcase_70 | AC | 45 ms
23,788 KB |
testcase_71 | AC | 46 ms
24,348 KB |
testcase_72 | AC | 47 ms
24,384 KB |
testcase_73 | AC | 45 ms
24,396 KB |
testcase_74 | AC | 45 ms
23,536 KB |
testcase_75 | AC | 45 ms
23,548 KB |
testcase_76 | AC | 48 ms
23,428 KB |
testcase_77 | AC | 45 ms
24,396 KB |
testcase_78 | AC | 45 ms
24,372 KB |
testcase_79 | AC | 45 ms
23,376 KB |
testcase_80 | AC | 44 ms
23,572 KB |
testcase_81 | AC | 44 ms
23,344 KB |
testcase_82 | AC | 45 ms
24,036 KB |
testcase_83 | AC | 45 ms
23,760 KB |
testcase_84 | AC | 46 ms
24,264 KB |
testcase_85 | AC | 45 ms
23,848 KB |
testcase_86 | AC | 45 ms
23,760 KB |
testcase_87 | AC | 46 ms
24,264 KB |
testcase_88 | AC | 46 ms
24,372 KB |
testcase_89 | AC | 45 ms
24,372 KB |
testcase_90 | AC | 45 ms
24,384 KB |
testcase_91 | AC | 45 ms
24,036 KB |
testcase_92 | AC | 46 ms
23,680 KB |
testcase_93 | AC | 45 ms
23,532 KB |
testcase_94 | AC | 47 ms
23,664 KB |
testcase_95 | AC | 46 ms
23,832 KB |
testcase_96 | AC | 45 ms
24,036 KB |
testcase_97 | AC | 46 ms
23,896 KB |
testcase_98 | AC | 45 ms
23,504 KB |
testcase_99 | AC | 48 ms
23,524 KB |
ソースコード
T, N, X = map(int, input().split()) X //= 500 S = [ 0 ] * N P = [ 0 ] * N R = [ 0 ] * N for turn in range(T): if (T - turn) % 5 == 0 and X >= 1200: level = (3 if X >= 4800 else 2 if X >= 2400 else 1) print(2, level, flush=True) elif turn >= 30: L = [X // N + (i < X % N) for i in range(N)] print(1, *L, flush=True) else: rem = X req = [ 0 ] * N for i in range(N): target = max(int(1.5625 * 1.1025 ** P[i]), int(1.0 / (0.140625 * 1.1025 ** P[i]) + 1.0)) req[i] = (max(target - R[i], 0), i) req.sort() L = [ 0 ] * N for i in range(N): if rem >= req[i][0]: rem -= req[i][0] L[req[i][1]] = req[i][0] print(1, *L, flush=True) X = int(input()) // 500 S = list(map(int, input().split())) P = list(map(int, input().split())) R = list(map(int, input().split()))