結果

問題 No.835 ジュース
ユーザー tekihei2317tekihei2317
提出日時 2019-06-14 22:22:22
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 1,660 ms
コンパイル使用メモリ 162,972 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-26 17:10:57
合計ジャッジ時間 1,989 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
    }
}
0