結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
9,324 KB
testcase_01 AC 16 ms
7,840 KB
testcase_02 AC 16 ms
7,716 KB
testcase_03 AC 16 ms
7,932 KB
testcase_04 AC 16 ms
7,776 KB
testcase_05 AC 16 ms
7,780 KB
testcase_06 AC 16 ms
7,696 KB
testcase_07 AC 16 ms
7,780 KB
testcase_08 AC 17 ms
7,836 KB
testcase_09 AC 16 ms
7,804 KB
testcase_10 AC 16 ms
7,832 KB
testcase_11 AC 22 ms
8,464 KB
testcase_12 AC 24 ms
8,204 KB
testcase_13 AC 21 ms
8,380 KB
testcase_14 AC 17 ms
7,772 KB
testcase_15 AC 23 ms
8,316 KB
testcase_16 AC 77 ms
9,384 KB
testcase_17 AC 74 ms
9,320 KB
testcase_18 AC 21 ms
8,220 KB
testcase_19 AC 28 ms
8,428 KB
testcase_20 AC 50 ms
9,120 KB
testcase_21 AC 18 ms
8,212 KB
testcase_22 AC 43 ms
8,840 KB
testcase_23 AC 75 ms
9,800 KB
testcase_24 AC 20 ms
8,584 KB
testcase_25 AC 36 ms
8,900 KB
testcase_26 AC 16 ms
7,780 KB
testcase_27 AC 18 ms
8,140 KB
testcase_28 AC 21 ms
8,400 KB
testcase_29 AC 18 ms
8,428 KB
testcase_30 AC 17 ms
8,356 KB
testcase_31 AC 23 ms
8,560 KB
testcase_32 AC 22 ms
8,404 KB
testcase_33 AC 17 ms
8,328 KB
testcase_34 AC 21 ms
8,404 KB
testcase_35 AC 22 ms
8,460 KB
testcase_36 AC 51 ms
9,188 KB
testcase_37 AC 48 ms
9,008 KB
testcase_38 AC 60 ms
9,344 KB
testcase_39 AC 57 ms
9,144 KB
testcase_40 AC 95 ms
9,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

start = l % n
left = (r - l + 1) % n
b = (r - l + 1) // 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