Submission #60406

# Submission time Handle Problem Language Result Execution time Memory
60406 2018-07-24T06:19:34 Z 정원준(#1745) Park (JOI17_park) C++11
10 / 100
13 ms 596 KB
#include "park.h"
#include <bits/stdc++.h>
#define L long long

using namespace std;

void Answer(int,int);
int Ask(int,int,int*);

int t,n;
int arr[2222];


void Detect(int T,int N){
	t=T;
	n=N;
	int i,j;
	if(t==1)
	{
		for(i=1;i<=n;i++)
		{
			for(j=i+1;j<=n;j++)
			{
				arr[i-1]=arr[j-1]=1;
				int temp=Ask(i-1,j-1,arr);
				if(temp==1) Answer(i-1,j-1);
				arr[i-1]=arr[j-1]=0;
			}
		}
		return;
	}
}
/*
int Ask(int st,int ed,int *arr){
    return 1;
}

void Answer(int s,int e){

}
int main()
{

}
*/

# Verdict Execution time Memory Grader output
1 Correct 2 ms 248 KB Output is correct
2 Correct 10 ms 356 KB Output is correct
3 Correct 12 ms 396 KB Output is correct
4 Correct 11 ms 596 KB Output is correct
5 Correct 13 ms 596 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 596 KB Wrong Answer[6]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 596 KB Wrong Answer[6]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 596 KB Wrong Answer[6]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 596 KB Wrong Answer[6]
2 Halted 0 ms 0 KB -