結果
| 問題 |
No.5018 Let's Make a Best-seller Book
|
| コンテスト | |
| ユーザー |
mymelochan
|
| 提出日時 | 2023-10-01 13:34:58 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 830 bytes |
| コンパイル時間 | 307 ms |
| コンパイル使用メモリ | 87,332 KB |
| 実行使用メモリ | 92,124 KB |
| スコア | 1,471 |
| 平均クエリ数 | 20.80 |
| 最終ジャッジ日時 | 2023-10-01 13:35:07 |
| 合計ジャッジ時間 | 8,756 ms |
|
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 40 TLE * 1 -- * 59 |
ソースコード
# 最初の入力
T, N, money = map(int, input().split())
ADV = 500000
S = [0] * N
P = [0] * N
R = [0] * N
# インタラクティブ
for week in range(T):
# (あ) 出版社の行動を出力する
if False and week <= T//2 and money >= ADV*2.1:
print("2",1,flush=True)
else:
for i in range(N):
P[i] += 5
P_sum = sum(P)
L = []
for i in range(N):
if P[i] <= 0:
L.append(0)
continue
ratio = P[i]/P_sum
m = min(20-R[i],int(money*ratio)//10//500)
L.append(m)
print("1", *L, flush=True)
# (い) 売上部数などを入力する
money = int(input())
S = list(map(int, input().split()))
P = list(map(int, input().split()))
R = list(map(int, input().split()))
mymelochan