# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
544651 | pokmui9909 | 공주님의 정원 (KOI11_flower) | C++17 | 44 ms | 2048 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
pair<int, int> ar[100001];
int main()
{
cin.tie(0); cout.tie(0);
ios_base::sync_with_stdio(false);
int n; cin >> n;
for(int i = 0; i < n; i++)
{
int a, b, c, d; cin >> a >> b >> c >> d;
ar[i] = {100 * a + b, 100*c + d};
}
int ans = 0;
int now = 301;
while(1)
{
if(now > 1130)
break;
int k = 0;
for(int i = 0; i < n; i++)
{
if(ar[i].first <= now && now < ar[i].second)
k = max(k, ar[i].second);
}
if(now >= k)
{
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |