Submission #854385

# Submission time Handle Problem Language Result Execution time Memory
854385 2023-09-27T07:32:31 Z mychecksedad The Collection Game (BOI21_swaps) C++17
21 / 100
39 ms 1672 KB
// #include <swaps.h>
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define MOD (1000000000+7)
#define MOD1 (998244353)
#define pb push_back
#define all(x) x.begin(), x.end()
#define en cout << '\n'

void schedule(int, int);

vector<int> visit();

void answer(std::vector<int>);

vector<int> B;

void solve(int N, int V){
	for(int i = 1; i <= N; ++i) B.pb(i);
	for(int i = 0; i < 500; ++i){
		if(i&1){
			for(int j = 2; j < N; j += 2) schedule(j, j + 1);
		}else{
			for(int j = 1; j < N; j += 2) schedule(j, j + 1);
		}
		visit();
	}


	answer(B);
}
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 344 KB Not correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 344 KB Not correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 3 ms 344 KB Correct
2 Correct 8 ms 344 KB Correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 344 KB Correct
2 Correct 8 ms 344 KB Correct
3 Incorrect 3 ms 344 KB Not correct
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 3 ms 344 KB Correct
2 Correct 9 ms 344 KB Correct
3 Correct 17 ms 344 KB Correct
4 Correct 34 ms 1424 KB Correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 344 KB Correct
2 Correct 9 ms 344 KB Correct
3 Correct 17 ms 344 KB Correct
4 Correct 34 ms 1424 KB Correct
5 Incorrect 3 ms 344 KB Not correct
6 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 3 ms 340 KB Correct
2 Correct 8 ms 344 KB Correct
3 Correct 17 ms 344 KB Correct
4 Correct 34 ms 1424 KB Correct
5 Correct 33 ms 1672 KB Correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 340 KB Correct
2 Correct 8 ms 344 KB Correct
3 Correct 17 ms 344 KB Correct
4 Correct 34 ms 1424 KB Correct
5 Correct 33 ms 1672 KB Correct
6 Incorrect 3 ms 344 KB Not correct
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 3 ms 344 KB Correct
2 Correct 8 ms 344 KB Correct
3 Correct 18 ms 344 KB Correct
4 Correct 32 ms 1444 KB Correct
5 Correct 32 ms 920 KB Correct
6 Runtime error 7 ms 668 KB Execution killed with signal 13
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 3 ms 344 KB Correct
2 Correct 8 ms 344 KB Correct
3 Correct 18 ms 344 KB Correct
4 Correct 32 ms 1444 KB Correct
5 Correct 32 ms 920 KB Correct
6 Runtime error 7 ms 668 KB Execution killed with signal 13
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 3 ms 344 KB Correct
2 Correct 9 ms 344 KB Correct
3 Correct 17 ms 344 KB Correct
4 Correct 39 ms 1428 KB Correct
5 Correct 32 ms 1412 KB Correct
6 Runtime error 7 ms 668 KB Execution killed with signal 13
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 3 ms 344 KB Correct
2 Correct 9 ms 344 KB Correct
3 Correct 17 ms 344 KB Correct
4 Correct 39 ms 1428 KB Correct
5 Correct 32 ms 1412 KB Correct
6 Runtime error 7 ms 668 KB Execution killed with signal 13
7 Halted 0 ms 0 KB -