Submission #1106985

#TimeUsernameProblemLanguageResultExecution timeMemory
1106985dubabubaMoney (IZhO17_money)C++14
0 / 100
1 ms504 KiB
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; set<int> s; for(int i = 0; i < n; i++) { int a; cin >> a; auto it = s.lower_bound(-a); if(it != s.end()) s.erase(it); s.insert(-a); } cout << s.size() << endl; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...