結果
| 問題 | 
                            No.835 ジュース
                             | 
                    
| コンテスト | |
| ユーザー | 
                             tekihei2317
                         | 
                    
| 提出日時 | 2019-06-14 22:22:22 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 236 bytes | 
| コンパイル時間 | 1,528 ms | 
| コンパイル使用メモリ | 166,012 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-11-14 06:40:03 | 
| 合計ジャッジ時間 | 2,030 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 3 | 
| other | WA * 6 | 
ソースコード
#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;
    }
}
            
            
            
        
            
tekihei2317