結果

問題 No.836 じょうよ
ユーザー r_ishidar_ishida
提出日時 2020-02-10 22:41:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 323 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2024-04-08 14:25:39
合計ジャッジ時間 4,308 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
9,984 KB
testcase_01 AC 29 ms
9,856 KB
testcase_02 AC 28 ms
9,856 KB
testcase_03 WA -
testcase_04 AC 28 ms
9,856 KB
testcase_05 AC 29 ms
9,856 KB
testcase_06 WA -
testcase_07 AC 29 ms
9,856 KB
testcase_08 WA -
testcase_09 AC 28 ms
9,856 KB
testcase_10 AC 29 ms
9,856 KB
testcase_11 AC 34 ms
9,984 KB
testcase_12 AC 36 ms
9,984 KB
testcase_13 AC 34 ms
9,984 KB
testcase_14 AC 30 ms
9,984 KB
testcase_15 AC 36 ms
9,984 KB
testcase_16 AC 88 ms
9,984 KB
testcase_17 WA -
testcase_18 AC 33 ms
9,984 KB
testcase_19 WA -
testcase_20 AC 62 ms
9,984 KB
testcase_21 AC 31 ms
10,112 KB
testcase_22 AC 54 ms
10,240 KB
testcase_23 AC 88 ms
10,240 KB
testcase_24 AC 33 ms
10,240 KB
testcase_25 AC 49 ms
10,240 KB
testcase_26 AC 29 ms
9,984 KB
testcase_27 AC 30 ms
10,112 KB
testcase_28 AC 34 ms
10,240 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 62 ms
10,240 KB
testcase_37 AC 59 ms
10,240 KB
testcase_38 AC 72 ms
10,240 KB
testcase_39 AC 66 ms
10,240 KB
testcase_40 AC 99 ms
10,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

l,r,n = map(int,input().split())
x1 = l//n
y1 = l%n
x2 = r//n
y2 = r%n
if y1 > y2:
    for i in range(n):
        if y2 <= i <= y1:
            print(x2-x1-1)
        else:
            print(x2 - x1)
else:
    for i in range(n):
        if y1 <= i <= y2:
            print(x2-x1+1)
        else:
            print(x2 - x1)
0