結果
問題 | No.836 じょうよ |
ユーザー |
![]() |
提出日時 | 2019-06-14 22:58:35 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 286 bytes |
コンパイル時間 | 602 ms |
コンパイル使用メモリ | 55,436 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-14 12:45:31 |
合計ジャッジ時間 | 2,857 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 WA * 28 |
ソースコード
#include<iostream> using namespace std; long long int l,r,n; int main () { cin >> l >> r >> n; for(int i=0; i<n; i++) { long long int d = r-l+1; if(( i <= r%n && l <= i) && i) cout << d / n + 1<< endl; else cout << d / n << endl; } return 0; }