# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
8002 | lingxiang | 공주님의 정원 (KOI11_flower) | C++98 | 36 ms | 1088 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<stdio.h>
int N;
int date[14]={0,31,59,90,120,151,181,212,243,273,304,334,};
int T[400];
int df(int x,int y){return date[x-1]+y;}
int ans;
int input(){
scanf("%d",&N);
int a,b,c,d;
for(int i=0;i<N;i++){
scanf("%d %d %d %d",&a,&b,&c,&d);
if(T[df(a,b)]<df(c,d))T[df(a,b)]=df(c,d);
}
return 0;
}
int solve(){
int mi=0;
int max=0;
for(int i=0;i<=df(3,1);i++){
if(T[i]>max){mi=i,max=T[i];}
}
ans += (max >= df(3,1));
int ni=0,nmax=max;
while(nmax<df(11,30)){
for(int i=mi;i<=max+1;i++){
if(T[i]>nmax){ni=i,nmax=T[i];}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |