結果
| 問題 |
No.5018 Let's Make a Best-seller Book
|
| コンテスト | |
| ユーザー |
mymelochan
|
| 提出日時 | 2023-10-01 13:29:30 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 903 bytes |
| コンパイル時間 | 385 ms |
| コンパイル使用メモリ | 87,080 KB |
| 実行使用メモリ | 95,456 KB |
| スコア | 0 |
| 平均クエリ数 | 2.00 |
| 最終ジャッジ日時 | 2023-10-01 13:29:56 |
| 合計ジャッジ時間 | 24,352 ms |
|
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 100 |
ソースコード
# 最初の入力
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] += 1
P_sum = sum(P)
L = []
for i in range(N):
if P[i] <= 0:
L.append(0)
continue
ratio = P[i]/P_sum
m = int(money*ratio)//10
L.append(m//500)
#[money // (500 * N)] * N
print(sum(l*500 for l in L))
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