結果
問題 |
No.5018 Let's Make a Best-seller Book
|
ユーザー |
![]() |
提出日時 | 2023-10-01 14:18:36 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 947 bytes |
コンパイル時間 | 160 ms |
コンパイル使用メモリ | 10,996 KB |
実行使用メモリ | 4,384 KB |
スコア | 0 |
最終ジャッジ日時 | 2023-10-01 14:18:40 |
合計ジャッジ時間 | 3,447 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 99 |
ソースコード
T,N,Money=map(int,input().split()) SELLS=[-1]*N S = [0] * N P = [0] * N R = [0] * N for tests in range(T): if Money>=9000000: print(2,5,flush=True) elif Money>=5000000: print(2,4,flush=True) elif Money>=3000000: print(2,3,flush=True) elif Money>=2000000: print(2,2,flush=True) else: ALL=Money//500 if SELLS[0]==-1: x=ALL//10 ANS=[x]*N print("1",*ANS,flush=True) else: SUM=sum(SELLS) ANS=[0]*N for i in range(N): ANS[i]=ALL*SELLS[i]//SUM print("1",*ANS,flush=True) Money=int(input()) if Money==-1: exit() S=list(map(int,input().split())) P=list(map(int,input().split())) R=list(map(int,input().split())) if SELLS[0]==-1: SELLS=[0]*N for i in range(N): SELLS[i]+=S[i]