# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
464955 | idk321 | Toys (CEOI18_toy) | C++17 | 5049 ms | 88160 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
unordered_map<int, unordered_set<int>> possibleAt;
const int N = 10000000;
int divFac[N];
void getDivisors(vector<int>& divisors, vector<array<int, 2>>& freqs, int ind, int cur) {
if (ind == freqs.size()) {
divisors.push_back(cur);
return;
}
for (int i = 0; i <= (freqs[ind][1]); i++) {
getDivisors(divisors, freqs, ind + 1, cur);
cur *= freqs[ind][0];
}
}
void solveFor(int num) {
if (possibleAt.find(num) != possibleAt.end()) return;
possibleAt[num].insert(num - 1);
if (num < N) {
map<int, int> mapp;
int cnum = num;
while (cnum != 1) {
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |