# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
541944 | Olympia | Relativnost (COCI15_relativnost) | C++17 | 1998 ms | 23960 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <vector>
#include <algorithm>
#include <iostream>
#include <set>
#include <cmath>
#include <map>
#include <random>
#include <cassert>
#include <ctime>
#include <cstdlib>
#include <limits.h>
#include <queue>
using namespace std;
const int MOD = 10007;
class Node {
public:
int dp[21]; //how many ways such that exactly C people get a painting
bool id;
Node (bool id) {
this->id = id;
for (int i = 0; i < 21; i++) {
dp[i] = 0;
}
}
};
Node merge (Node n1, Node n2) {
if (!n1.id) return n2;
if (!n2.id) return n1;
Node ans(true);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |