結果
| 問題 |
No.2154 あさかつの参加人数
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-02 17:06:34 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 283 bytes |
| コンパイル時間 | 1,603 ms |
| コンパイル使用メモリ | 169,012 KB |
| 実行使用メモリ | 18,888 KB |
| 最終ジャッジ日時 | 2024-11-27 01:04:59 |
| 合計ジャッジ時間 | 71,860 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 TLE * 21 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int N,M,L,R;
cin>>N>>M;
vector<int> day(N);
for(int i=0;i<M;i++){
cin>>L>>R;
for(int j=R-1;j<=L-1;j++){
day[j]++;
}
}
for(int i=0;i<N;i++){
cout<<day[N-1-i]<<endl;
}
}