This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// g++ -O3 solve.cpp -fopenmp && ./a.out | |
// | |
// Credits: | |
// Algorithm: @utaha1228 | |
// Optimization: @sasdf | |
#include "table.h" // Generated by python3 solve.py | |
#include <omp.h> | |
#include <cstdint> | |
#include <cstdio> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gmpy2 | |
import requests | |
import random | |
import time | |
import sys | |
import numpy as np | |
import re | |
from tqdm import tqdm, trange | |
from telnetlib import Telnet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{- 1 -} | |
myFst :: (a, b) -> a | |
myFst x = fst x | |
{- 2 -} | |
myOdd :: Int -> Bool | |
myOdd x = mod x 2 == 1 | |
{- 3 -} | |
-- (a) Ord is for types that have an ordering. |