結果

問題 No.836 じょうよ
ユーザー xuzijian629xuzijian629
提出日時 2019-06-14 22:01:19
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 121 ms / 1,000 ms
コード長 278 bytes
コンパイル時間 1,687 ms
コンパイル使用メモリ 192,504 KB
最終ジャッジ日時 2025-01-07 04:31:25
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 41
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);

    long long l, r;
    cin >> l >> r;
    int n;
    cin >> n;
    for (int i = 0; i < n; i++) {
        cout << (r - i + n) / n - (l - 1 - i + n) / n << endl;
    }
}
0