結果
問題 |
No.2154 あさかつの参加人数
|
ユーザー |
![]() |
提出日時 | 2023-05-06 14:01:41 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 357 bytes |
コンパイル時間 | 654 ms |
コンパイル使用メモリ | 71,680 KB |
実行使用メモリ | 15,744 KB |
最終ジャッジ日時 | 2024-11-23 21:57:40 |
合計ジャッジ時間 | 72,869 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 TLE * 21 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int n,m; cin>>n>>m; vector<int>a(n); for(int i=0;i<m;i++){ int l,r;cin>>l>>r; l--;r--; for(int j=r;j<=l;j++){ a[j]++; } } reverse(a.begin(),a.end()); for(int i=0;i<n;i++){ cout<<a[i]<<endl; } return 0; }