結果

問題 No.836 じょうよ
ユーザー dnishdnish
提出日時 2019-06-22 18:05:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 224 ms / 1,000 ms
コード長 257 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 31,708 KB
最終ジャッジ日時 2023-08-27 03:01:23
合計ジャッジ時間 8,649 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 215 ms
30,452 KB
testcase_01 AC 126 ms
29,068 KB
testcase_02 AC 132 ms
29,100 KB
testcase_03 AC 129 ms
29,292 KB
testcase_04 AC 128 ms
29,268 KB
testcase_05 AC 131 ms
29,096 KB
testcase_06 AC 129 ms
29,332 KB
testcase_07 AC 127 ms
29,288 KB
testcase_08 AC 131 ms
29,076 KB
testcase_09 AC 131 ms
29,016 KB
testcase_10 AC 130 ms
29,124 KB
testcase_11 AC 140 ms
29,400 KB
testcase_12 AC 137 ms
29,304 KB
testcase_13 AC 134 ms
29,368 KB
testcase_14 AC 132 ms
29,308 KB
testcase_15 AC 135 ms
29,428 KB
testcase_16 AC 213 ms
30,984 KB
testcase_17 AC 203 ms
31,352 KB
testcase_18 AC 135 ms
29,388 KB
testcase_19 AC 142 ms
29,996 KB
testcase_20 AC 182 ms
31,708 KB
testcase_21 AC 131 ms
29,504 KB
testcase_22 AC 165 ms
30,308 KB
testcase_23 AC 211 ms
30,648 KB
testcase_24 AC 134 ms
29,612 KB
testcase_25 AC 162 ms
29,824 KB
testcase_26 AC 132 ms
29,280 KB
testcase_27 AC 134 ms
29,484 KB
testcase_28 AC 139 ms
29,520 KB
testcase_29 AC 131 ms
29,444 KB
testcase_30 AC 132 ms
29,492 KB
testcase_31 AC 140 ms
29,776 KB
testcase_32 AC 136 ms
29,704 KB
testcase_33 AC 127 ms
29,488 KB
testcase_34 AC 135 ms
29,600 KB
testcase_35 AC 136 ms
29,692 KB
testcase_36 AC 171 ms
30,024 KB
testcase_37 AC 174 ms
30,156 KB
testcase_38 AC 190 ms
30,440 KB
testcase_39 AC 182 ms
30,224 KB
testcase_40 AC 224 ms
30,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
l, r, n = map(int, input().split()) 

start = l % n
total = r - l + 1
left, b = total % n, total // n

ans_list = np.ones(n, dtype=np.int64) * b
ans_list[[i % n for i in range(start, start+left)]] += 1

for ans in ans_list:
    print(ans)
0