This file contains 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
#include <bitset> | |
#include <cassert> | |
#include <iostream> | |
using MaskType = uint64_t; | |
static int LowestBitSet(const MaskType v) | |
{ | |
return __builtin_ffsl(v); | |
} |
This file contains 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
#include <iostream> | |
#include <fstream> | |
#include <filesystem> | |
#include <chrono> | |
using namespace std; | |
using Timer = std::chrono::high_resolution_clock; | |
using TimePoint = std::chrono::time_point<Timer>; |
OlderNewer