結果
| 問題 |
No.836 じょうよ
|
| コンテスト | |
| ユーザー |
f843nmfwisfeuw
|
| 提出日時 | 2020-09-26 12:35:38 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 127 ms / 1,000 ms |
| コード長 | 615 bytes |
| コンパイル時間 | 848 ms |
| コンパイル使用メモリ | 91,876 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 23:09:37 |
| 合計ジャッジ時間 | 3,534 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 41 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <stack>
#include <algorithm>
#include <string>
#include <map>
#include <iterator>
#include <set>
#include <queue>
#include <bitset>
#include <cassert>
using namespace std;
using ll = long long;
ll f(ll r, ll div, ll mod) {
ll res = r / div;
if (mod <= r % div and 0 < mod) {
res += 1;
}
return res;
}
int main() {
ll l, r;
cin >> l >> r;
int n;
cin >> n;
for (int i = 0; i < n; ++i) {
cout << f(r, n, i) - f(l-1, n, i) << endl;
}
return 0;
}
f843nmfwisfeuw