結果
問題 |
No.836 じょうよ
|
ユーザー |
![]() |
提出日時 | 2019-06-14 21:33:03 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 248 bytes |
コンパイル時間 | 1,843 ms |
コンパイル使用メモリ | 166,932 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-09 00:28:43 |
合計ジャッジ時間 | 3,892 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 39 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long signed main() { int l, r, n; cin >> l >> r >> n; for (int i = n - 1; i >= 0; i--) { int ans = (r - i + 1) / n - (l - i) / n; cout << ans << endl; } return 0; }