# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
643338 | Matteo_Verz | Present (RMI21_present) | C++17 | 1477 ms | 8844 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#ifdef BLAT
#include "debug/debug.hpp"
#else
#define debug(x...)
#endif
using namespace std;
void generateNextSet(long long &mask) {
for (int i = 1; i <= 40; i++) {
mask ^= (1LL << i);
if (mask & (1LL << i))
break;
}
long long gcd = 0;
for (int i = 1; i <= 40; i++)
for (int j = i + 1; j <= 40; j++)
if ((mask & (1LL << i)) && (mask & (1LL << j)))
gcd |= (1LL << (__gcd(i, j)));
for (int i = 40; i >= 1; i--)
if (gcd & (1LL << i))
mask |= (1LL << i);
}
void printSet(long long set, int setidx) {
// cout << "S" << setidx << " = ";
cout << __builtin_popcountll(set) << ' ';
# | 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... |