結果
問題 |
No.836 じょうよ
|
ユーザー |
![]() |
提出日時 | 2019-06-22 17:19:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 146 ms / 1,000 ms |
コード長 | 477 bytes |
コンパイル時間 | 925 ms |
コンパイル使用メモリ | 72,660 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 09:27:32 |
合計ジャッジ時間 | 4,013 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 41 |
ソースコード
#include<iostream> #include<vector> #include<algorithm> #include<list> #define REP(i,a,n) for(ll i=a;i<n;i++) typedef long long ll; using namespace std; int main(){ ll l,r,n; cin >> l >> r >> n; vector<ll> anslist(n); ll fill = (r - l + 1)/n; ll left = (r - l + 1)%n; ll start = l%n; REP(i,0,n){ anslist[i]= fill; } REP(i,start,start+left){ anslist[i%n]++; } REP(i,0,n){ cout << anslist[i] << endl; } }