답안 #1099798

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1099798 2024-10-12T05:19:59 Z model_code 메시지 (IOI24_message) C++17
10 / 100
934 ms 1056 KB
// incorrect/subtask1.cpp

#include "message.h"

#include <iostream>
#include <vector>
#include <algorithm>

void send_message(
    std::vector<bool> message, std::vector<bool> /*positions*/) {
  for (auto bit : message) {
    std::vector<bool> bits(31);
    for (int i=0; i<31; i++) bits[i] = bit;
    send_packet(bits);
  }
}

std::vector<bool> receive_message(
    std::vector<std::vector<bool>> received_bits) {
  std::vector<bool> message;
  for (std::vector<bool> round : received_bits) {
    std::sort(round.begin(), round.end());
    message.push_back(round[15]);
  }
  return message;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 664 KB Used 4 days
# 결과 실행 시간 메모리 Grader output
1 Correct 934 ms 1056 KB Used 64 days
2 Correct 489 ms 840 KB Used 61 days
3 Correct 920 ms 824 KB Used 64 days
4 Correct 691 ms 816 KB Used 56 days
5 Correct 641 ms 808 KB Used 64 days
6 Correct 467 ms 852 KB Used 63 days
7 Correct 331 ms 796 KB Used 64 days
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 664 KB Used 4 days
2 Correct 934 ms 1056 KB Used 64 days
3 Correct 489 ms 840 KB Used 61 days
4 Correct 920 ms 824 KB Used 64 days
5 Correct 691 ms 816 KB Used 56 days
6 Correct 641 ms 808 KB Used 64 days
7 Correct 467 ms 852 KB Used 63 days
8 Correct 331 ms 796 KB Used 64 days
9 Incorrect 1 ms 332 KB Used too many days
10 Halted 0 ms 0 KB -