結果
問題 | No.836 じょうよ |
ユーザー |
|
提出日時 | 2019-06-14 22:17:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 280 bytes |
コンパイル時間 | 480 ms |
コンパイル使用メモリ | 63,600 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-14 06:33:53 |
合計ジャッジ時間 | 2,779 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 40 |
ソースコード
#include <iostream> using namespace std; typedef long long LL; int main(int argc, char* argv[]) { LL l,r; int n; cin>>l>>r>>n; LL num0=(r-l+1)/n; LL Num=num0*n; for (int i=0;i<n;i++){ if (Num+i<=r){ cout<<num0+i<<endl; }else{ cout<<num0<<endl; } } return 0; }