# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
676895 | Cyanmond | Genetics (BOI18_genetics) | C++17 | 337 ms | 36416 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using i64 = long long;
constexpr i64 P = (1ll << 61) - 1;
void add(i64 &a, i64 b) {
a += b;
if (a >= P) {
a -= P;
}
}
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int N, M, K;
std::cin >> N >> M >> K;
std::vector<std::string> S(N);
for (auto &e : S) {
std::cin >> e;
}
std::vector<i64> H(N);
std::mt19937 mt(100);
std::uniform_int_distribution<i64> dist(0, P - 1);
for (auto &e : H) {
e = dist(mt);
}
# | 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... |