結果
問題 | No.836 じょうよ |
ユーザー |
|
提出日時 | 2019-06-14 21:27:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 825 bytes |
コンパイル時間 | 1,875 ms |
コンパイル使用メモリ | 165,064 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-08 20:22:48 |
合計ジャッジ時間 | 3,156 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 WA * 5 |
ソースコード
#include "bits/stdc++.h" // Custom Header <<< #define ALL(x) x.begin(), x.end() #define rep(i, s, n) for(int i(s); i < int(n); ++i) #ifndef YDK #define eprintf(...) #endif using namespace std; using i64 = long long; using pii = pair<int, int>; template<class A, class B>inline bool chmax(A &a, const B &b){return b>a ? a=b,1 : 0;} template<class A, class B>inline bool chmin(A &a, const B &b){return b<a ? a=b,1 : 0;} constexpr int INF = 0x3f3f3f3f; constexpr i64 LINF = 0x3f3f3f3f3f3f3f3fLL; constexpr int MOD = int(1e9) + 7; // >>> signed main() { i64 l, r, n; cin >> l >> r >> n; for (int p = 0; p < n; ++p) { const i64 L = l - p; const i64 R = r - p; cout << (R / n) - ((L + n - 1) / n) + 1 << '\n'; } return 0; } /* vim:set foldmethod=marker foldmarker=<<<,>>> : */