結果

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

ソースコード

diff #

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

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