# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
24388 | 2017-06-06T13:01:24 Z | gs14004 | Roller Coaster Railroad (IOI16_railroad) | C++11 | 623 ms | 27060 KB |
#include "railroad.h" #include <bits/stdc++.h> using namespace std; typedef pair<int, int> pi; map<int, int> mp; long long plan_roller_coaster(std::vector<int> s, std::vector<int> t) { vector<int> v; int n = (int) s.size(); for(int i=0; i<n; i++){ mp[s[i]]++; mp[t[i]]--; } for(auto &i : mp) v.push_back(i.second); int curBef = 1; for(int i=0; i<v.size(); i++){ curBef -= v[i]; if(curBef < 0) return 1; } return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 2024 KB | n = 2 |
2 | Correct | 0 ms | 2024 KB | n = 2 |
3 | Correct | 0 ms | 2024 KB | n = 2 |
4 | Correct | 0 ms | 2024 KB | n = 2 |
5 | Correct | 0 ms | 2024 KB | n = 2 |
6 | Incorrect | 0 ms | 2024 KB | answer is not correct: 1 instead of 523688153 |
7 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 2024 KB | n = 2 |
2 | Correct | 0 ms | 2024 KB | n = 2 |
3 | Correct | 0 ms | 2024 KB | n = 2 |
4 | Correct | 0 ms | 2024 KB | n = 2 |
5 | Correct | 0 ms | 2024 KB | n = 2 |
6 | Incorrect | 0 ms | 2024 KB | answer is not correct: 1 instead of 523688153 |
7 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 429 ms | 27060 KB | n = 199999 |
2 | Correct | 429 ms | 27060 KB | n = 199991 |
3 | Correct | 623 ms | 27060 KB | n = 199993 |
4 | Correct | 329 ms | 21796 KB | n = 152076 |
5 | Correct | 143 ms | 13856 KB | n = 93249 |
6 | Correct | 463 ms | 23648 KB | n = 199910 |
7 | Correct | 476 ms | 26648 KB | n = 199999 |
8 | Correct | 429 ms | 23768 KB | n = 199997 |
9 | Correct | 433 ms | 23912 KB | n = 171294 |
10 | Correct | 409 ms | 20592 KB | n = 140872 |
11 | Incorrect | 513 ms | 23908 KB | answer is not correct: 0 instead of 1 |
12 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 2024 KB | n = 2 |
2 | Correct | 0 ms | 2024 KB | n = 2 |
3 | Correct | 0 ms | 2024 KB | n = 2 |
4 | Correct | 0 ms | 2024 KB | n = 2 |
5 | Correct | 0 ms | 2024 KB | n = 2 |
6 | Incorrect | 0 ms | 2024 KB | answer is not correct: 1 instead of 523688153 |
7 | Halted | 0 ms | 0 KB | - |