제출 #806570

#제출 시각아이디문제언어결과실행 시간메모리
806570gun_ganFinancial Report (JOI21_financial)C++17
5 / 100
47 ms2632 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { cin.tie(0); ios_base::sync_with_stdio(0); int N, D; cin >> N >> D; vector<int> lis; for(int i = 1; i <= N; i++) { int x; cin >> x; auto it = lower_bound(lis.begin(), lis.end(), x); if(it != lis.end()) { *it = x; } else { lis.push_back(x); } } cout << lis.size() << '\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...