結果

問題 No.836 じょうよ
ユーザー Suu0313Suu0313
提出日時 2019-06-14 21:39:37
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 290 bytes
コンパイル時間 1,125 ms
コンパイル使用メモリ 145,344 KB
実行使用メモリ 8,760 KB
最終ジャッジ日時 2023-08-08 17:36:03
合計ジャッジ時間 3,732 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 TLE -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    int l, r, n, L;
    cin >> l >> r >> n;
    L = r-l+1;
    vector<int>A(n);
    for (int i = l; i < L; i++) {
       A.at(i%n)++; 
    }
    for (int i = 0; i < n; i++) {
        cout << A.at(i) << endl;
    }
    return 0;
}
0