Submission #54748

# Submission time Handle Problem Language Result Execution time Memory
54748 2018-07-05T02:09:24 Z spencercompton Park (JOI17_park) C++17
10 / 100
61 ms 700 KB
#include "park.h"

static int place[1400];
void Detect(int T, int N) {
	for(int i = 0; i<N; i++){
		place[i] = 0;
	}
	for(int i = 0; i<N; i++){
		for(int j = i+1; j<N; j++){
			place[i] = 1;
			place[j] = 1;
			if(Ask(i,j,place)==1){
				Answer(i,j);
			}
			place[i] = 0;
			place[j] = 0;
		}
	}
}
# Verdict Execution time Memory Grader output
1 Correct 2 ms 248 KB Output is correct
2 Correct 9 ms 356 KB Output is correct
3 Correct 10 ms 392 KB Output is correct
4 Correct 11 ms 536 KB Output is correct
5 Correct 12 ms 536 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 60 ms 624 KB Wrong Answer[5]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 54 ms 624 KB Wrong Answer[5]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 51 ms 700 KB Wrong Answer[5]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 61 ms 700 KB Wrong Answer[5]
2 Halted 0 ms 0 KB -