QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#129946#6740. FunctionNicolas125841TL 0ms0kbC++17479b2023-07-23 10:03:222023-07-23 10:03:26

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:03:26]
  • 评测
  • 测评结果:TL
  • 用时:0ms
  • 内存:0kb
  • [2023-07-23 10:03:22]
  • 提交

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 <= N; i++){
        if(i > n)
            break;

        rec(n/i);
    }
}

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

    rec(1000000000);

    cout << "0\n";
}

详细

Test #1:

score: 0
Time Limit Exceeded

input:

1

output:


result: