結果

問題 No.836 じょうよ
ユーザー dnishdnish
提出日時 2019-06-22 17:59:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 92 ms / 1,000 ms
コード長 228 bytes
コンパイル時間 391 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 9,940 KB
最終ジャッジ日時 2023-08-27 03:01:10
合計ジャッジ時間 3,497 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
9,260 KB
testcase_01 AC 15 ms
7,808 KB
testcase_02 AC 16 ms
7,816 KB
testcase_03 AC 16 ms
7,980 KB
testcase_04 AC 15 ms
7,924 KB
testcase_05 AC 14 ms
7,732 KB
testcase_06 AC 15 ms
7,924 KB
testcase_07 AC 16 ms
7,788 KB
testcase_08 AC 15 ms
7,876 KB
testcase_09 AC 15 ms
7,852 KB
testcase_10 AC 15 ms
7,868 KB
testcase_11 AC 20 ms
8,404 KB
testcase_12 AC 24 ms
8,228 KB
testcase_13 AC 20 ms
8,276 KB
testcase_14 AC 16 ms
7,796 KB
testcase_15 AC 23 ms
8,320 KB
testcase_16 AC 78 ms
9,316 KB
testcase_17 AC 73 ms
9,428 KB
testcase_18 AC 20 ms
8,244 KB
testcase_19 AC 27 ms
8,500 KB
testcase_20 AC 49 ms
9,108 KB
testcase_21 AC 18 ms
8,176 KB
testcase_22 AC 41 ms
8,776 KB
testcase_23 AC 71 ms
9,408 KB
testcase_24 AC 19 ms
8,552 KB
testcase_25 AC 36 ms
8,552 KB
testcase_26 AC 16 ms
7,812 KB
testcase_27 AC 16 ms
8,224 KB
testcase_28 AC 20 ms
8,476 KB
testcase_29 AC 18 ms
8,244 KB
testcase_30 AC 17 ms
8,288 KB
testcase_31 AC 23 ms
8,460 KB
testcase_32 AC 22 ms
8,676 KB
testcase_33 AC 17 ms
8,372 KB
testcase_34 AC 20 ms
8,552 KB
testcase_35 AC 21 ms
8,512 KB
testcase_36 AC 48 ms
9,076 KB
testcase_37 AC 48 ms
8,844 KB
testcase_38 AC 60 ms
9,344 KB
testcase_39 AC 53 ms
9,168 KB
testcase_40 AC 92 ms
9,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

l, r, n = map(int, input().split()) 

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

ans_list = [0] * (2 * n)
ans_list[start:start+left] = [1]*left

for i in range(n):
    print(b + ans_list[i] + ans_list[i+n])
0