# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1072736 | 2024-08-24T03:42:50 Z | SiliconSquared | Global Warming (CEOI18_glo) | C++14 | 184 ms | 6228 KB |
using namespace std; #include <iostream> #include <vector> #include <set> int main(){ int n,x,a,b; cin>>n>>x; set<int> s; for (int i=0;i<n;i++){ cin>>a; if (s.lower_bound(a)==s.end()){ s.insert(a); }else{ s.erase(s.lower_bound(a)); s.insert(a); } } cout<<s.size(); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 72 ms | 2132 KB | Output is correct |
2 | Correct | 74 ms | 2104 KB | Output is correct |
3 | Correct | 184 ms | 2128 KB | Output is correct |
4 | Correct | 73 ms | 2128 KB | Output is correct |
5 | Correct | 64 ms | 6228 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 18 ms | 860 KB | Output is correct |
2 | Correct | 17 ms | 860 KB | Output is correct |
3 | Correct | 25 ms | 800 KB | Output is correct |
4 | Incorrect | 16 ms | 1880 KB | Output isn't correct |
5 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 43 ms | 1468 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |