結果

問題 No.5018 Let's Make a Best-seller Book
ユーザー hiro1729
提出日時 2023-10-01 15:46:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 142 ms / 400 ms
コード長 378 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 87,148 KB
実行使用メモリ 92,568 KB
スコア 4,283
平均クエリ数 52.00
最終ジャッジ日時 2023-10-01 15:46:53
合計ジャッジ時間 16,683 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
純コード判定しない問題か言語
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 100
権限があれば一括ダウンロードができます

ソースコード

diff #

T, N, money = map(int, input().split())
S = [0] * N
P = [0] * N
R = [0] * N
for week in range(T):
	p = sorted([(P[i], i) for i in range(N)], reverse = True)
	L = [money // (400 * N)] * N
	for i in p[7:]:
		L[i[1]] = 0
	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()))
0