結果
| 問題 |
No.836 じょうよ
|
| コンテスト | |
| ユーザー |
ocat
|
| 提出日時 | 2019-06-27 02:19:33 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 125 ms / 1,000 ms |
| コード長 | 493 bytes |
| コンパイル時間 | 1,669 ms |
| コンパイル使用メモリ | 167,668 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-26 10:30:13 |
| 合計ジャッジ時間 | 4,358 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 41 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#ifdef DEBUG
#include "../include/debug.hpp"
#else
#define debug(...) 42
#define rdfile(...) 42
#endif
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
// rdfile("_input.txt");
long long l, r, n;
cin >> l >> r >> n;
for (long long i=0; i<n; ++i) {
long long c1, c2;
c1 = r/n + (r%n >= i ? 1 : 0);
c2 = (l-1)/n + ((l-1)%n >= i ? 1 : 0);
cout << c1 - c2 << endl;
}
return 0;
}
ocat