結果

問題 No.836 じょうよ
ユーザー ohreitetsuohreitetsu
提出日時 2019-06-14 23:03:13
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 491 bytes
コンパイル時間 815 ms
コンパイル使用メモリ 70,000 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-26 21:32:54
合計ジャッジ時間 3,173 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 WA -
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 2 ms
5,376 KB
testcase_06 WA -
testcase_07 AC 2 ms
5,376 KB
testcase_08 AC 2 ms
5,376 KB
testcase_09 WA -
testcase_10 AC 1 ms
5,376 KB
testcase_11 AC 10 ms
5,376 KB
testcase_12 AC 15 ms
5,376 KB
testcase_13 AC 10 ms
5,376 KB
testcase_14 AC 3 ms
5,376 KB
testcase_15 AC 11 ms
5,376 KB
testcase_16 AC 88 ms
5,376 KB
testcase_17 WA -
testcase_18 AC 8 ms
5,376 KB
testcase_19 WA -
testcase_20 AC 51 ms
5,376 KB
testcase_21 AC 4 ms
5,376 KB
testcase_22 AC 45 ms
5,376 KB
testcase_23 AC 98 ms
5,376 KB
testcase_24 AC 7 ms
5,376 KB
testcase_25 AC 34 ms
5,376 KB
testcase_26 AC 3 ms
5,376 KB
testcase_27 AC 4 ms
5,376 KB
testcase_28 AC 11 ms
5,376 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 53 ms
5,376 KB
testcase_37 AC 49 ms
5,376 KB
testcase_38 AC 78 ms
5,376 KB
testcase_39 AC 67 ms
5,376 KB
testcase_40 AC 128 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
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 numS=l/n*n;
	if (numS<l){
		numS+=n;
	}
	LL NumE=(r/n)*n;
	vector<LL> numV;
	numV.push_back(num0);
	for (int i=1;i<n;i++){	
		numV.push_back(num0-1);
	}
	for (LL i=l;i<numS;i++){
		numV[i%n]++;
	}
	for (LL i=NumE+1;i<=r;i++){	
		numV[i%n]++;
	}

	for (int i=0;i<numV.size();i++){
		cout<<numV[i]<<endl;
	}
	return 0;
}
0