Submission #1099734

# Submission time Handle Problem Language Result Execution time Memory
1099734 2024-10-12T05:04:37 Z model_code Machine (IOI24_machine) C++17
0 / 100
82 ms 436 KB
// incorrect/wa_nplusone-zoooma13.cpp

#include <bits/stdc++.h>
#include "machine.h"
using namespace std;

vector <int> find_permutation(int n){
    vector <int> q(n);
    int x = use_machine(q)[0];

    vector <int> p(n);
    for(int i = 0; i < n; i++){
        q[i] = x;
        auto r = use_machine(q);
        p[find(r.begin() ,r.end() ,0) - r.begin()] = i;
        q[i] = 0;
    }
    return p;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 436 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 82 ms 428 KB Incorrect result
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Too many queries
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Too many queries
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Too many queries
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Too many queries
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Too many queries
2 Halted 0 ms 0 KB -