結果

問題 No.2154 あさかつの参加人数
ユーザー kotatsugamekotatsugame
提出日時 2022-12-09 21:22:45
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 415 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 655 ms
コンパイル使用メモリ 63,596 KB
実行使用メモリ 5,504 KB
最終ジャッジ日時 2024-04-22 19:24:01
合計ジャッジ時間 12,338 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 410 ms
5,504 KB
testcase_01 AC 409 ms
5,504 KB
testcase_02 AC 415 ms
5,376 KB
testcase_03 AC 407 ms
5,376 KB
testcase_04 AC 400 ms
5,504 KB
testcase_05 AC 171 ms
5,376 KB
testcase_06 AC 310 ms
5,376 KB
testcase_07 AC 185 ms
5,376 KB
testcase_08 AC 176 ms
5,376 KB
testcase_09 AC 42 ms
5,376 KB
testcase_10 AC 164 ms
5,376 KB
testcase_11 AC 346 ms
5,376 KB
testcase_12 AC 282 ms
5,376 KB
testcase_13 AC 156 ms
5,376 KB
testcase_14 AC 303 ms
5,376 KB
testcase_15 AC 164 ms
5,376 KB
testcase_16 AC 283 ms
5,376 KB
testcase_17 AC 336 ms
5,376 KB
testcase_18 AC 347 ms
5,376 KB
testcase_19 AC 19 ms
5,376 KB
testcase_20 AC 262 ms
5,376 KB
testcase_21 AC 33 ms
5,376 KB
testcase_22 AC 67 ms
5,376 KB
testcase_23 AC 312 ms
5,376 KB
testcase_24 AC 357 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;
int C[5<<17];
int main()
{
	int N,M;
	cin>>N>>M;
	for(;M--;)
	{
		int l,r;cin>>l>>r;
		C[N-l]++;
		C[N-r+1]--;
	}
	int t=0;
	for(int i=0;i<N;i++)cout<<(t+=C[i])<<"\n";
}
0