結果
問題 | No.2154 あさかつの参加人数 |
ユーザー |
|
提出日時 | 2022-12-09 21:22:45 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 389 ms / 2,000 ms |
コード長 | 210 bytes |
コンパイル時間 | 522 ms |
コンパイル使用メモリ | 63,168 KB |
実行使用メモリ | 5,504 KB |
最終ジャッジ日時 | 2024-10-14 18:58:37 |
合計ジャッジ時間 | 10,983 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
#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"; }