답안 #971683

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
971683 2024-04-29T07:47:02 Z 12345678 Super Dango Maker (JOI22_dango3) C++17
7 / 100
2094 ms 700 KB
#include "dango3.h"
#include <bits/stdc++.h>

using namespace std;

const int nx=1e4+5;

int used[nx], n, m;

int query()
{
    vector<int> qrs;
    for (int i=1; i<=n*m; i++) if (!used[i]) qrs.push_back(i);
    return Query(qrs);
}

void Solve(int N, int M) {
    n=N, m=M;
    for (int i=M; i>=1; i--)
    {
        vector<int> res;
        for (int j=1; j<=N*M; j++)
        {
            if (used[j]) continue;
            used[j]=1;
            if (query()==i-1) res.push_back(j);
            else used[j]=0;
        }
        Answer(res);
    }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 344 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 21 ms 512 KB Output is correct
2 Correct 22 ms 348 KB Output is correct
3 Correct 25 ms 516 KB Output is correct
4 Correct 27 ms 348 KB Output is correct
5 Correct 22 ms 348 KB Output is correct
6 Correct 22 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 940 ms 596 KB Wrong Answer [3]
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2094 ms 700 KB Wrong Answer [3]
2 Halted 0 ms 0 KB -