結果
| 問題 |
No.5018 Let's Make a Best-seller Book
|
| コンテスト | |
| ユーザー |
mymelochan
|
| 提出日時 | 2023-10-01 13:40:22 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 820 bytes |
| コンパイル時間 | 289 ms |
| コンパイル使用メモリ | 87,116 KB |
| 実行使用メモリ | 95,444 KB |
| スコア | 4,677 |
| 平均クエリ数 | 20.74 |
| 最終ジャッジ日時 | 2023-10-01 13:40:49 |
| 合計ジャッジ時間 | 9,188 ms |
|
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 98 RE * 1 TLE * 1 |
ソースコード
# 最初の入力
T, N, money = map(int, input().split())
ADV = 500000
S = [0] * N
P = [0] * N
R = [0] * N
# インタラクティブ
for week in range(T):
# (あ) 出版社の行動を出力する
if 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(30-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