結果
問題 | No.836 じょうよ |
ユーザー |
![]() |
提出日時 | 2019-06-14 22:23:10 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 126 ms / 1,000 ms |
コード長 | 236 bytes |
コンパイル時間 | 1,699 ms |
コンパイル使用メモリ | 167,260 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-14 06:41:39 |
合計ジャッジ時間 | 4,058 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 41 |
ソースコード
#include<bits/stdc++.h> #define int long long using namespace std; int f(int N,int x,int r) { return N/x+(r<=N%x); } signed main() { int l,r,n; cin>>l>>r>>n; for(int i=0;i<n;i++){ cout<<f(r,n,i)-f(l-1,n,i)<<endl; } }