답안 #1099733

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1099733 2024-10-12T05:04:25 Z model_code Machine (IOI24_machine) C++17
19 / 100
15 ms 708 KB
// incorrect/sol_2.cpp

#include <bits/stdc++.h>
#include "machine.h"

using namespace std;

vector<int> find_permutation(int n)
{
	vector<int> v(n,0);
	auto ret=use_machine(v);
	int x=ret[0];
	for(int i=0;i<v.size();i++)
		v[i]=i;
	v=use_machine(v);
	for(int i=0;i<v.size();i++)
	    v[i]=v[i]^x;
	return v;
}

Compilation message

machine.cpp: In function 'std::vector<int> find_permutation(int)':
machine.cpp:13:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   13 |  for(int i=0;i<v.size();i++)
      |              ~^~~~~~~~~
machine.cpp:16:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   16 |  for(int i=0;i<v.size();i++)
      |              ~^~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 4 ms 452 KB Output is correct
3 Correct 4 ms 344 KB Output is correct
4 Correct 6 ms 456 KB Output is correct
5 Correct 8 ms 708 KB Output is correct
6 Correct 7 ms 592 KB Output is correct
7 Correct 7 ms 440 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 4 ms 600 KB Output is correct
3 Correct 4 ms 448 KB Output is correct
4 Correct 7 ms 344 KB Output is correct
5 Correct 7 ms 600 KB Output is correct
6 Correct 15 ms 344 KB Output is correct
7 Correct 7 ms 444 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 344 KB Too many queries
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 344 KB Too many queries
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 344 KB Too many queries
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 344 KB Too many queries
2 Halted 0 ms 0 KB -