Skip to content

Instantly share code, notes, and snippets.

View smrt28's full-sized avatar

SMRT smrt28

View GitHub Profile
#include <iostream>
#include <variant>
#include <optional>
#include <type_traits>
#include <functional>
#include <memory>
#include <vector>
#include <iostream>
#include <cmath>
#include <ctime>
#include <variant>
#include <iostream>
#include <vector>
#include <stdint.h>
#include <limits>
#include <cassert>
namespace ttt {
enum TagId {
_first,
#include <iostream>
#include <string.h>
#include <stdint.h>
static const int X = 100;
int64_t cache[X];
int64_t fn(int64_t a) {
if (cache[a] > 0) return cache[a];
if (a == 0) return 0;