結果

問題 No.836 じょうよ
ユーザー sho_00sho_00
提出日時 2020-04-11 15:45:35
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 192 bytes
コンパイル時間 1,043 ms
コンパイル使用メモリ 81,600 KB
実行使用メモリ 75,688 KB
最終ジャッジ日時 2023-10-19 07:07:42
合計ジャッジ時間 4,268 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 39 ms
53,284 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 40 ms
53,284 KB
testcase_07 AC 38 ms
53,284 KB
testcase_08 WA -
testcase_09 AC 39 ms
53,284 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 80 ms
75,592 KB
testcase_18 WA -
testcase_19 AC 68 ms
70,440 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 53 ms
62,096 KB
testcase_30 AC 52 ms
62,096 KB
testcase_31 AC 62 ms
66,232 KB
testcase_32 AC 53 ms
62,096 KB
testcase_33 AC 52 ms
62,096 KB
testcase_34 AC 53 ms
62,096 KB
testcase_35 AC 62 ms
66,232 KB
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

l,r,n=map(int,input().split())
v=(r-l+1)//n
for i in range(n):
  tmp=v
  if l%n<=i:
    tmp+=1
    if l%n==0:
      tmp-=1
  if 0<=i<=r%n:
    tmp+=1
    if r%n==0:
      tmp-=1
  print(tmp)

0