結果
| 問題 | No.836 じょうよ |
| コンテスト | |
| ユーザー |
f843nmfwisfeuw
|
| 提出日時 | 2020-09-26 12:35:38 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 63 ms / 1,000 ms |
| + 268µs | |
| コード長 | 615 bytes |
| 記録 | |
| コンパイル時間 | 459 ms |
| コンパイル使用メモリ | 106,440 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-01 09:12:51 |
| 合計ジャッジ時間 | 2,882 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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