QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#187084#1. I/O TestzhyljCompile Error//C++143.1kb2023-09-24 14:27:382023-09-24 14:27:39

Judging History

你现在查看的是最新测评结果

  • [2023-09-24 14:27:39]
  • 评测
  • [2023-09-24 14:27:38]
  • 提交

config.txt

#include <bits/stdc++.h>

const int N = 1e7 + 5, MOD = 1e6 + 3;

int mu[N], s_sq[N], s[N], s_0[N], p[N], p_cnt;
bool flag[N];
void Init() {
    mu[1] = 1;
    for(int i = 2; i < N; ++i) {
        if(!flag[i]) { p[++p_cnt] = i; mu[i] = -1; }
        for(int j = 1; j <= p_cnt && i * p[j] < N; ++j) {
            flag[i * p[j]] = true;
            if(i % p[j] == 0) { mu[i * p[j]] = 0; break; }
            mu[i * p[j]] = -mu[i];
        }
    }
    for(int i = 1; i < N; ++i) {
      ...

input_test


output_test


详细

Invalid Configuration File: failed to read Nin and Nout