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 <cstdio> | |
#include <ctime> | |
#include <omp.h> | |
#include <cstdlib> | |
#include <chrono> | |
#include <random> | |
using namespace std; | |
int main() { |
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 <benchmark/benchmark.h> | |
#include <random> | |
#include <cstdio> | |
#include <queue> | |
static const int MINE = -1; | |
static const int NUM_MINES = 10000; | |
struct Cell { | |
int value; |
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 <cstdio> | |
#include <random> | |
#include <algorithm> | |
#include <chrono> | |
int getRandNum_Old() { | |
static bool init = false; | |
if (!init) { | |
std::srand(time(nullptr)); // Seed std::rand | |
init = true; |