답안 #646573

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
646573 2022-09-30T07:19:23 Z lis05st Floppy (RMI20_floppy) C++17
0 / 100
66 ms 10340 KB
#include <stdlib.h>
#include <string.h>

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

void read_array(int subtask_id, const std::vector<int> &v) {
    std::string bits = "001100";
    save_to_floppy(bits);
}

std::vector<int> solve_queries(int subtask_id, int N,
        const std::string &bits,
        const std::vector<int> &a, const std::vector<int> &b) {
    cout<<"IT WORKS!\n";
    std::vector<int> answers = {0, 0, 0, 0, 1, 2, 2, 2, 2, 3};
    return answers;
}

Compilation message

stub.cpp: In function 'void run2()':
stub.cpp:101:30: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
  101 |     if (query_answers.size() != M) {
      |         ~~~~~~~~~~~~~~~~~~~~~^~~~
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 672 KB Security error -- do not print anything to stdout
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 22 ms 2972 KB Security error -- do not print anything to stdout
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 66 ms 10340 KB Security error -- do not print anything to stdout
2 Halted 0 ms 0 KB -