結果
問題 | No.5018 Let's Make a Best-seller Book |
ユーザー | u_kun |
提出日時 | 2023-10-01 15:56:11 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 113 ms / 400 ms |
コード長 | 1,356 bytes |
コンパイル時間 | 427 ms |
コンパイル使用メモリ | 87,392 KB |
実行使用メモリ | 92,400 KB |
スコア | 5,277 |
平均クエリ数 | 52.00 |
最終ジャッジ日時 | 2023-10-01 15:56:30 |
合計ジャッジ時間 | 17,550 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
純コード判定しない問題か言語 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 113 ms
91,508 KB |
testcase_01 | AC | 107 ms
91,488 KB |
testcase_02 | AC | 106 ms
92,124 KB |
testcase_03 | AC | 106 ms
91,756 KB |
testcase_04 | AC | 107 ms
91,660 KB |
testcase_05 | AC | 108 ms
91,604 KB |
testcase_06 | AC | 107 ms
91,388 KB |
testcase_07 | AC | 107 ms
91,936 KB |
testcase_08 | AC | 107 ms
92,096 KB |
testcase_09 | AC | 108 ms
91,612 KB |
testcase_10 | AC | 106 ms
91,832 KB |
testcase_11 | AC | 107 ms
91,884 KB |
testcase_12 | AC | 107 ms
91,912 KB |
testcase_13 | AC | 112 ms
91,844 KB |
testcase_14 | AC | 105 ms
91,632 KB |
testcase_15 | AC | 106 ms
92,400 KB |
testcase_16 | AC | 107 ms
91,596 KB |
testcase_17 | AC | 108 ms
92,044 KB |
testcase_18 | AC | 106 ms
91,472 KB |
testcase_19 | AC | 105 ms
91,612 KB |
testcase_20 | AC | 107 ms
92,152 KB |
testcase_21 | AC | 109 ms
91,712 KB |
testcase_22 | AC | 107 ms
91,492 KB |
testcase_23 | AC | 105 ms
91,524 KB |
testcase_24 | AC | 107 ms
91,800 KB |
testcase_25 | AC | 106 ms
92,112 KB |
testcase_26 | AC | 107 ms
91,544 KB |
testcase_27 | AC | 105 ms
91,644 KB |
testcase_28 | AC | 106 ms
91,480 KB |
testcase_29 | AC | 108 ms
91,708 KB |
testcase_30 | AC | 105 ms
91,628 KB |
testcase_31 | AC | 106 ms
91,904 KB |
testcase_32 | AC | 107 ms
92,028 KB |
testcase_33 | AC | 107 ms
91,896 KB |
testcase_34 | AC | 106 ms
91,560 KB |
testcase_35 | AC | 107 ms
91,572 KB |
testcase_36 | AC | 106 ms
91,460 KB |
testcase_37 | AC | 107 ms
92,180 KB |
testcase_38 | AC | 106 ms
91,828 KB |
testcase_39 | AC | 103 ms
91,684 KB |
testcase_40 | AC | 107 ms
91,712 KB |
testcase_41 | AC | 106 ms
91,520 KB |
testcase_42 | AC | 107 ms
92,104 KB |
testcase_43 | AC | 107 ms
92,180 KB |
testcase_44 | AC | 107 ms
91,712 KB |
testcase_45 | AC | 106 ms
91,576 KB |
testcase_46 | AC | 108 ms
91,912 KB |
testcase_47 | AC | 106 ms
91,784 KB |
testcase_48 | AC | 106 ms
91,624 KB |
testcase_49 | AC | 107 ms
91,656 KB |
testcase_50 | AC | 107 ms
92,180 KB |
testcase_51 | AC | 105 ms
91,580 KB |
testcase_52 | AC | 106 ms
91,520 KB |
testcase_53 | AC | 105 ms
91,388 KB |
testcase_54 | AC | 108 ms
92,276 KB |
testcase_55 | AC | 107 ms
92,032 KB |
testcase_56 | AC | 107 ms
91,564 KB |
testcase_57 | AC | 106 ms
92,128 KB |
testcase_58 | AC | 107 ms
91,944 KB |
testcase_59 | AC | 107 ms
92,096 KB |
testcase_60 | AC | 106 ms
92,036 KB |
testcase_61 | AC | 106 ms
92,096 KB |
testcase_62 | AC | 107 ms
92,188 KB |
testcase_63 | AC | 105 ms
91,936 KB |
testcase_64 | AC | 105 ms
91,516 KB |
testcase_65 | AC | 106 ms
91,524 KB |
testcase_66 | AC | 106 ms
92,172 KB |
testcase_67 | AC | 105 ms
91,592 KB |
testcase_68 | AC | 108 ms
91,996 KB |
testcase_69 | AC | 107 ms
91,928 KB |
testcase_70 | AC | 108 ms
91,888 KB |
testcase_71 | AC | 109 ms
91,476 KB |
testcase_72 | AC | 106 ms
91,516 KB |
testcase_73 | AC | 106 ms
92,160 KB |
testcase_74 | AC | 105 ms
92,012 KB |
testcase_75 | AC | 105 ms
92,000 KB |
testcase_76 | AC | 108 ms
91,580 KB |
testcase_77 | AC | 107 ms
91,760 KB |
testcase_78 | AC | 107 ms
91,592 KB |
testcase_79 | AC | 110 ms
92,052 KB |
testcase_80 | AC | 108 ms
91,464 KB |
testcase_81 | AC | 108 ms
91,496 KB |
testcase_82 | AC | 109 ms
91,848 KB |
testcase_83 | AC | 108 ms
91,640 KB |
testcase_84 | AC | 109 ms
91,576 KB |
testcase_85 | AC | 108 ms
91,568 KB |
testcase_86 | AC | 110 ms
91,800 KB |
testcase_87 | AC | 108 ms
91,732 KB |
testcase_88 | AC | 107 ms
91,456 KB |
testcase_89 | AC | 108 ms
91,472 KB |
testcase_90 | AC | 108 ms
91,492 KB |
testcase_91 | AC | 108 ms
92,196 KB |
testcase_92 | AC | 106 ms
91,948 KB |
testcase_93 | AC | 106 ms
91,504 KB |
testcase_94 | AC | 109 ms
91,944 KB |
testcase_95 | AC | 109 ms
91,992 KB |
testcase_96 | AC | 113 ms
91,668 KB |
testcase_97 | AC | 108 ms
92,236 KB |
testcase_98 | AC | 106 ms
91,496 KB |
testcase_99 | AC | 107 ms
92,116 KB |
ソースコード
T, N, M = map(int, input().split()) S_cum = [0 for _ in range(N)] for week in range(1, T + 1): if week == 1: L_list = [((M // 500) // 10) // 7 for _ in range(N)] print(1, end = " ", flush = True) print(*L_list, flush = True) elif 2 <= week <= 15: L_list = [0 for _ in range(N)] print(1, end = " ", flush = True) print(*L_list, flush = True) else: L_list = [0 for _ in range(N)] for i in range(N): L_list[i] = int((M // 500) * mag[i]) print(1, end = " ", flush = True) print(*L_list, flush = True) M = int(input()) S = list(map(int, input().split())) # 各店舗のその週の売り上げ冊 P = list(map(int, input().split())) # 各店舗のその時点での人気度 R = list(map(int, input().split())) # 各店舗での在庫冊数 for i in range(N): S_cum[i] += S[i] mag = [] sum_S = sum(S_cum) for i in range(N): mag.append(S_cum[i] / sum_S) """ No1_P_shop = None # 0-9 No1_R_shop = None max_P = -100 min_R = 1000 for i in range(N): if max_P < P[i]: max_P = P[i] No1_P_shop = i if min_R > R[i]: min_R = R[i] No1_R_shop = i """