結果
問題 |
No.2154 あさかつの参加人数
|
ユーザー |
![]() |
提出日時 | 2022-12-02 21:49:27 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 286 bytes |
コンパイル時間 | 2,684 ms |
コンパイル使用メモリ | 162,488 KB |
実行使用メモリ | 15,744 KB |
最終ジャッジ日時 | 2024-10-09 23:04:36 |
合計ジャッジ時間 | 10,472 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 24 |
ソースコード
#include "bits/stdc++.h" using namespace std; int ans[600000]; int main(){ int n,m; cin >> n >> m; for(int i = 0;i < m;++i){ int a,b; cin >> a >> b; for(int q = a;q >= b;--q){ ans[n - q] += 1; } } for(int i = 0;i < n;++i){ cout << ans[i] << endl; } }