답안 #1040476

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1040476 2024-08-01T05:40:27 Z 김은성(#10995) How to Avoid Disqualification in 75 Easy Steps (CEOI23_avoid) C++17
10 / 100
1 ms 352 KB
#include "avoid.h"
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <deque>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;

std::pair<int, int> scout(int R, int H) {
	int i, j, ans = 0;
	for (i = 0; i < 10; i++) {
		vector<int> vec;
		for (j = 1; j <= 1000; j++) {
			if (j & (1 << i))
				vec.push_back(j);
		}
		send(vec);
	}
	vector<int> ret = wait();
	for (i = 0; i < 10; i++) {
		if (ret[i] == 1)
			ans |= (1 << i);
	}
	return make_pair(ans, ans);
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 344 KB Not correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Correct: 10 robot(s) used, 1 hour(s) passed
2 Correct 1 ms 340 KB Correct: 10 robot(s) used, 1 hour(s) passed
3 Correct 0 ms 344 KB Correct: 10 robot(s) used, 1 hour(s) passed
4 Correct 0 ms 344 KB Correct: 10 robot(s) used, 1 hour(s) passed
5 Correct 0 ms 344 KB Correct: 10 robot(s) used, 1 hour(s) passed
6 Correct 0 ms 348 KB Correct: 10 robot(s) used, 1 hour(s) passed
7 Correct 0 ms 352 KB Correct: 10 robot(s) used, 1 hour(s) passed
8 Correct 0 ms 352 KB Correct: 10 robot(s) used, 1 hour(s) passed
9 Correct 0 ms 344 KB Correct: 10 robot(s) used, 1 hour(s) passed
10 Correct 0 ms 344 KB Correct: 10 robot(s) used, 1 hour(s) passed
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 344 KB Not correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 344 KB Not correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB Not correct
2 Halted 0 ms 0 KB -