結果

問題 No.5018 Let's Make a Best-seller Book
ユーザー naesiranaesira
提出日時 2023-10-01 15:55:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 153 ms / 400 ms
コード長 470 bytes
コンパイル時間 327 ms
コンパイル使用メモリ 87,440 KB
実行使用メモリ 92,356 KB
スコア 4,519
平均クエリ数 52.00
最終ジャッジ日時 2023-10-01 15:55:48
合計ジャッジ時間 16,361 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
純コード判定しない問題か言語
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
91,728 KB
testcase_01 AC 112 ms
91,556 KB
testcase_02 AC 106 ms
92,036 KB
testcase_03 AC 106 ms
91,780 KB
testcase_04 AC 113 ms
92,136 KB
testcase_05 AC 105 ms
91,440 KB
testcase_06 AC 105 ms
91,860 KB
testcase_07 AC 107 ms
91,956 KB
testcase_08 AC 106 ms
92,156 KB
testcase_09 AC 107 ms
91,644 KB
testcase_10 AC 107 ms
91,544 KB
testcase_11 AC 106 ms
91,684 KB
testcase_12 AC 108 ms
91,920 KB
testcase_13 AC 105 ms
91,900 KB
testcase_14 AC 108 ms
92,180 KB
testcase_15 AC 106 ms
92,084 KB
testcase_16 AC 106 ms
92,192 KB
testcase_17 AC 107 ms
91,640 KB
testcase_18 AC 106 ms
91,588 KB
testcase_19 AC 106 ms
91,784 KB
testcase_20 AC 104 ms
91,800 KB
testcase_21 AC 112 ms
91,884 KB
testcase_22 AC 107 ms
91,928 KB
testcase_23 AC 106 ms
91,496 KB
testcase_24 AC 105 ms
92,004 KB
testcase_25 AC 107 ms
91,520 KB
testcase_26 AC 105 ms
91,584 KB
testcase_27 AC 106 ms
91,384 KB
testcase_28 AC 106 ms
91,596 KB
testcase_29 AC 114 ms
91,900 KB
testcase_30 AC 110 ms
92,120 KB
testcase_31 AC 108 ms
91,752 KB
testcase_32 AC 107 ms
92,004 KB
testcase_33 AC 107 ms
91,904 KB
testcase_34 AC 109 ms
92,084 KB
testcase_35 AC 107 ms
91,980 KB
testcase_36 AC 107 ms
91,640 KB
testcase_37 AC 109 ms
91,800 KB
testcase_38 AC 118 ms
92,024 KB
testcase_39 AC 107 ms
92,356 KB
testcase_40 AC 107 ms
91,488 KB
testcase_41 AC 107 ms
92,008 KB
testcase_42 AC 107 ms
92,128 KB
testcase_43 AC 104 ms
91,908 KB
testcase_44 AC 106 ms
91,728 KB
testcase_45 AC 106 ms
91,720 KB
testcase_46 AC 117 ms
91,896 KB
testcase_47 AC 106 ms
92,128 KB
testcase_48 AC 106 ms
91,408 KB
testcase_49 AC 107 ms
92,072 KB
testcase_50 AC 105 ms
91,640 KB
testcase_51 AC 106 ms
92,356 KB
testcase_52 AC 105 ms
92,076 KB
testcase_53 AC 108 ms
91,628 KB
testcase_54 AC 107 ms
92,128 KB
testcase_55 AC 119 ms
91,548 KB
testcase_56 AC 108 ms
92,080 KB
testcase_57 AC 107 ms
91,508 KB
testcase_58 AC 108 ms
91,496 KB
testcase_59 AC 112 ms
91,456 KB
testcase_60 AC 110 ms
91,448 KB
testcase_61 AC 107 ms
91,488 KB
testcase_62 AC 107 ms
91,920 KB
testcase_63 AC 112 ms
91,976 KB
testcase_64 AC 107 ms
91,724 KB
testcase_65 AC 107 ms
91,912 KB
testcase_66 AC 107 ms
92,216 KB
testcase_67 AC 106 ms
91,620 KB
testcase_68 AC 105 ms
92,096 KB
testcase_69 AC 107 ms
91,820 KB
testcase_70 AC 109 ms
91,628 KB
testcase_71 AC 111 ms
92,084 KB
testcase_72 AC 109 ms
91,640 KB
testcase_73 AC 109 ms
91,696 KB
testcase_74 AC 108 ms
91,756 KB
testcase_75 AC 107 ms
91,640 KB
testcase_76 AC 108 ms
91,820 KB
testcase_77 AC 107 ms
91,712 KB
testcase_78 AC 106 ms
92,148 KB
testcase_79 AC 106 ms
91,504 KB
testcase_80 AC 153 ms
92,152 KB
testcase_81 AC 107 ms
91,624 KB
testcase_82 AC 106 ms
92,016 KB
testcase_83 AC 105 ms
91,696 KB
testcase_84 AC 105 ms
91,776 KB
testcase_85 AC 107 ms
91,824 KB
testcase_86 AC 108 ms
92,136 KB
testcase_87 AC 107 ms
92,204 KB
testcase_88 AC 108 ms
91,916 KB
testcase_89 AC 107 ms
91,976 KB
testcase_90 AC 107 ms
91,728 KB
testcase_91 AC 109 ms
91,792 KB
testcase_92 AC 105 ms
91,576 KB
testcase_93 AC 105 ms
92,016 KB
testcase_94 AC 107 ms
91,736 KB
testcase_95 AC 107 ms
91,836 KB
testcase_96 AC 131 ms
92,088 KB
testcase_97 AC 106 ms
91,992 KB
testcase_98 AC 107 ms
92,060 KB
testcase_99 AC 108 ms
91,764 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T, N, Money = map(int, input().split())
S, P, R = [0]*N, [0]*N, [0]*N
for week in range(T):
  L = [0]*N
  K = sorted(((S[i]+1)**2 * (P[i]+61)**4 // (R[i]+1), i) for i in range(N))
  for j, (k, i) in enumerate(K, 1):
    L[i] = j
  k = Money//(500*sum(L))
  L = [k*l for l in L]
  print(1, *L, 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()))
0