結果

問題 No.836 じょうよ
ユーザー tonyu0
提出日時 2019-11-01 22:18:56
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 292 bytes
コンパイル時間 507 ms
コンパイル使用メモリ 64,476 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-14 22:53:14
合計ジャッジ時間 2,000 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
using ll = long long;

ll l, r, n;

int main() {
  cin >> l >> r >> n;
  ll L = l % n;
  for(int i = 0; i < n; ++i) {
    ll next;
    if(L > i) next = l + n - L + i;
    else next = l + i - L;
    cout << (r - next) / n + 1 << '\n';
  }
  return 0;
}
0