# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1175928 | Zero_OP | Memory 2 (JOI16_memory2) | C++20 | 1 ms | 328 KiB |
#include "Memory2_lib.h"
#include <bits/stdc++.h>
using namespace std;
namespace{
}
void Solve(int T, int N){
if(N == 1){
Answer(0, 1, 1);
return;
}
if(N == 2){
for(int i = 0; i < 4; ++i){
for(int j = i+1; j < 4; ++j){
if(Flip(i, j) == 1){
Answer(i, j, 1);
int x = -1, y = -1;
for(int k = 0; k < 4; ++k){
if(k != i && k != j){
if(x == -1) x = k;
else y = k;
}
}
Answer(x, y, 0);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |