結果

問題 No.836 じょうよ
ユーザー takakintakakin
提出日時 2020-05-10 13:43:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 346 bytes
コンパイル時間 68 ms
コンパイル使用メモリ 10,904 KB
実行使用メモリ 8,584 KB
最終ジャッジ日時 2023-09-21 21:34:05
合計ジャッジ時間 3,985 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
7,792 KB
testcase_01 AC 15 ms
7,880 KB
testcase_02 AC 14 ms
7,756 KB
testcase_03 AC 15 ms
7,776 KB
testcase_04 AC 14 ms
7,824 KB
testcase_05 AC 14 ms
7,788 KB
testcase_06 AC 14 ms
7,876 KB
testcase_07 AC 15 ms
7,828 KB
testcase_08 WA -
testcase_09 AC 15 ms
7,856 KB
testcase_10 AC 14 ms
7,772 KB
testcase_11 AC 19 ms
8,212 KB
testcase_12 AC 21 ms
8,200 KB
testcase_13 AC 19 ms
8,196 KB
testcase_14 AC 18 ms
7,780 KB
testcase_15 AC 20 ms
7,892 KB
testcase_16 AC 64 ms
7,852 KB
testcase_17 AC 64 ms
7,780 KB
testcase_18 AC 19 ms
7,852 KB
testcase_19 AC 24 ms
7,928 KB
testcase_20 AC 42 ms
7,788 KB
testcase_21 AC 16 ms
8,312 KB
testcase_22 AC 37 ms
8,540 KB
testcase_23 AC 62 ms
8,408 KB
testcase_24 AC 18 ms
8,420 KB
testcase_25 AC 31 ms
8,584 KB
testcase_26 AC 15 ms
7,812 KB
testcase_27 AC 15 ms
8,304 KB
testcase_28 AC 19 ms
8,484 KB
testcase_29 AC 17 ms
8,200 KB
testcase_30 AC 16 ms
8,308 KB
testcase_31 AC 20 ms
8,476 KB
testcase_32 AC 19 ms
8,440 KB
testcase_33 AC 15 ms
8,312 KB
testcase_34 AC 18 ms
8,552 KB
testcase_35 AC 19 ms
8,572 KB
testcase_36 AC 43 ms
8,484 KB
testcase_37 AC 41 ms
8,516 KB
testcase_38 AC 51 ms
8,448 KB
testcase_39 AC 47 ms
8,440 KB
testcase_40 AC 78 ms
8,444 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
l,r,n=map(int,input().split())
if n==1:
  print(r-l+1)
else:
  c=(r-l+1)//n
  l%=n
  r%=n
  if l<=r:
    for i in range(n):
      if l<=i<=r:
        print(c+1)
      else:
        print(c)
  else:
    for i in range(n):
      if i<=r or l<=i:
        print(c+1)
      else:
        print(c)
0