結果
問題 | No.5018 Let's Make a Best-seller Book |
ユーザー | すぎぱも |
提出日時 | 2023-10-01 15:30:20 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 135 ms / 400 ms |
コード長 | 991 bytes |
コンパイル時間 | 435 ms |
コンパイル使用メモリ | 86,932 KB |
実行使用メモリ | 92,416 KB |
スコア | 3,015 |
平均クエリ数 | 52.00 |
最終ジャッジ日時 | 2023-10-01 15:30:37 |
合計ジャッジ時間 | 16,922 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
純コード判定しない問題か言語 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 109 ms
91,448 KB |
testcase_01 | AC | 110 ms
91,628 KB |
testcase_02 | AC | 107 ms
91,844 KB |
testcase_03 | AC | 106 ms
92,024 KB |
testcase_04 | AC | 105 ms
92,168 KB |
testcase_05 | AC | 107 ms
92,068 KB |
testcase_06 | AC | 105 ms
91,652 KB |
testcase_07 | AC | 105 ms
92,024 KB |
testcase_08 | AC | 105 ms
91,656 KB |
testcase_09 | AC | 107 ms
91,584 KB |
testcase_10 | AC | 107 ms
91,376 KB |
testcase_11 | AC | 104 ms
92,092 KB |
testcase_12 | AC | 133 ms
91,408 KB |
testcase_13 | AC | 105 ms
91,824 KB |
testcase_14 | AC | 107 ms
91,728 KB |
testcase_15 | AC | 105 ms
91,884 KB |
testcase_16 | AC | 106 ms
92,200 KB |
testcase_17 | AC | 107 ms
91,832 KB |
testcase_18 | AC | 107 ms
92,016 KB |
testcase_19 | AC | 106 ms
91,472 KB |
testcase_20 | AC | 132 ms
91,568 KB |
testcase_21 | AC | 104 ms
92,052 KB |
testcase_22 | AC | 104 ms
91,920 KB |
testcase_23 | AC | 107 ms
91,964 KB |
testcase_24 | AC | 129 ms
91,672 KB |
testcase_25 | AC | 106 ms
91,664 KB |
testcase_26 | AC | 107 ms
91,620 KB |
testcase_27 | AC | 107 ms
91,668 KB |
testcase_28 | AC | 107 ms
91,684 KB |
testcase_29 | AC | 108 ms
91,872 KB |
testcase_30 | AC | 106 ms
91,412 KB |
testcase_31 | AC | 105 ms
91,988 KB |
testcase_32 | AC | 107 ms
92,048 KB |
testcase_33 | AC | 106 ms
91,932 KB |
testcase_34 | AC | 107 ms
91,640 KB |
testcase_35 | AC | 104 ms
92,272 KB |
testcase_36 | AC | 134 ms
92,104 KB |
testcase_37 | AC | 107 ms
91,644 KB |
testcase_38 | AC | 105 ms
91,640 KB |
testcase_39 | AC | 107 ms
91,860 KB |
testcase_40 | AC | 107 ms
91,548 KB |
testcase_41 | AC | 134 ms
92,088 KB |
testcase_42 | AC | 108 ms
91,560 KB |
testcase_43 | AC | 107 ms
91,720 KB |
testcase_44 | AC | 132 ms
91,672 KB |
testcase_45 | AC | 130 ms
91,740 KB |
testcase_46 | AC | 106 ms
92,020 KB |
testcase_47 | AC | 106 ms
91,848 KB |
testcase_48 | AC | 107 ms
92,176 KB |
testcase_49 | AC | 105 ms
91,632 KB |
testcase_50 | AC | 105 ms
91,796 KB |
testcase_51 | AC | 105 ms
92,136 KB |
testcase_52 | AC | 133 ms
91,640 KB |
testcase_53 | AC | 104 ms
92,096 KB |
testcase_54 | AC | 105 ms
91,748 KB |
testcase_55 | AC | 106 ms
91,628 KB |
testcase_56 | AC | 105 ms
91,568 KB |
testcase_57 | AC | 108 ms
91,880 KB |
testcase_58 | AC | 106 ms
91,448 KB |
testcase_59 | AC | 106 ms
91,440 KB |
testcase_60 | AC | 131 ms
91,632 KB |
testcase_61 | AC | 108 ms
91,556 KB |
testcase_62 | AC | 104 ms
91,980 KB |
testcase_63 | AC | 106 ms
91,800 KB |
testcase_64 | AC | 106 ms
91,796 KB |
testcase_65 | AC | 105 ms
91,464 KB |
testcase_66 | AC | 106 ms
91,504 KB |
testcase_67 | AC | 132 ms
91,912 KB |
testcase_68 | AC | 116 ms
91,680 KB |
testcase_69 | AC | 106 ms
92,416 KB |
testcase_70 | AC | 107 ms
92,096 KB |
testcase_71 | AC | 107 ms
91,708 KB |
testcase_72 | AC | 105 ms
91,488 KB |
testcase_73 | AC | 106 ms
91,840 KB |
testcase_74 | AC | 106 ms
91,572 KB |
testcase_75 | AC | 106 ms
91,380 KB |
testcase_76 | AC | 105 ms
91,656 KB |
testcase_77 | AC | 105 ms
91,584 KB |
testcase_78 | AC | 106 ms
92,072 KB |
testcase_79 | AC | 104 ms
91,764 KB |
testcase_80 | AC | 105 ms
91,824 KB |
testcase_81 | AC | 106 ms
91,836 KB |
testcase_82 | AC | 106 ms
91,404 KB |
testcase_83 | AC | 106 ms
91,932 KB |
testcase_84 | AC | 130 ms
92,132 KB |
testcase_85 | AC | 106 ms
92,060 KB |
testcase_86 | AC | 106 ms
92,068 KB |
testcase_87 | AC | 133 ms
92,060 KB |
testcase_88 | AC | 107 ms
91,636 KB |
testcase_89 | AC | 108 ms
91,892 KB |
testcase_90 | AC | 113 ms
91,544 KB |
testcase_91 | AC | 106 ms
91,848 KB |
testcase_92 | AC | 106 ms
91,432 KB |
testcase_93 | AC | 132 ms
91,440 KB |
testcase_94 | AC | 106 ms
91,956 KB |
testcase_95 | AC | 107 ms
91,452 KB |
testcase_96 | AC | 132 ms
91,836 KB |
testcase_97 | AC | 105 ms
92,116 KB |
testcase_98 | AC | 107 ms
91,908 KB |
testcase_99 | AC | 135 ms
92,128 KB |
ソースコード
T, N, money = map(int, input().split()) s, p, r = [0] * N, [0] * N, [0] * N def do(arg): if type(arg) == list: print(1, *arg, flush=True) else: print(2, arg, flush=True) money = int(input()) if money == -1: exit() s = list(map(int, input().split())) p = list(map(int, input().split())) r = list(map(int, input().split())) return money, s, p, r money, s, p, r = do([money // (500 * N)] * N) for week in range(T - 1): leftbook = money // 500 # print(leftbook) needbook = leftbook # print(needbook) ship = [max(0, needbook // N - r) for r in r] if sum(ship) == 0 and money >= 500000: ship = 1 if money >= 1000000: ship = 2 # print(sum(s * 500 for s in ship)) money, s, p, r = do(ship) # 52 10 200000000 # 10000000 # 1 2 3 4 5 6 7 8 9 10 # 1 2 3 4 5 6 7 8 9 10 # 1 2 3 4 5 6 7 8 9 10 # 1000000 10000000 10000000 1000000 10000000 1000000 1000000 10000000 1000000 1000000