Submission #944106

# Submission time Handle Problem Language Result Execution time Memory
944106 2024-03-12T08:33:22 Z beepbeepsheep Chameleon's Love (JOI20_chameleon) C++17
0 / 100
15 ms 596 KB
#include "chameleon.h"
#include <vector>

namespace {

int variable_example = 1;

}  // namespace

void Solve(int N) {
    N*=2;
    for (int i=1;i<=N;i++){
        for (int j=i+1;j<=N;j++){
            std::vector<int> v;
            v.emplace_back(i);
            v.emplace_back(j);
            if (Query(v)==1){
                Answer(i,j);
            }
        }
    }
}

Compilation message

chameleon.cpp:6:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
    6 | int variable_example = 1;
      |     ^~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 344 KB Output is correct
3 Incorrect 15 ms 340 KB Wrong Answer [3]
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 596 KB Output is correct
2 Incorrect 0 ms 348 KB Wrong Answer [6]
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 596 KB Output is correct
2 Incorrect 0 ms 348 KB Wrong Answer [6]
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 1 ms 344 KB Wrong Answer [6]
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 344 KB Output is correct
3 Incorrect 15 ms 340 KB Wrong Answer [3]
4 Halted 0 ms 0 KB -