QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#129947#6740. FunctionNicolas125841WA 54ms45600kbC++17465b2023-07-23 10:08:282023-07-23 10:08:30

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-23 10:08:30]
  • 评测
  • 测评结果:WA
  • 用时:54ms
  • 内存:45600kb
  • [2023-07-23 10:08:28]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

const ll mod = 998244353;
const int N = 20210926;

unordered_set<int> vis;

void rec(int n){
    if(vis.find(n) != vis.end())
        return;

    vis.insert(n);

    for(int i = 2; i * i <= n; i++){      
        rec(n/i);
        rec(i);
    }
}

int main(){
    for(int i = 0; i < 1000000; i++)
        vis.insert(i);

    rec(1000000000);

    cout << "0\n";
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 54ms
memory: 45600kb

input:

1

output:

0

result:

wrong answer 1st numbers differ - expected: '1', found: '0'