Last active
August 29, 2015 14:02
-
-
Save Tosainu/5b63773f20e04e3d8aed to your computer and use it in GitHub Desktop.
例のアレ
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 <random> | |
auto main() -> int { | |
std::mt19937 rd{std::random_device()()}; | |
std::uniform_int_distribution<const char> stuff('A', 'Z'); | |
unsigned long long int cnt; | |
std::string cell; | |
for (cnt = 0; cell != "STAP"; ++cnt) { | |
// create new cell | |
cell.assign({stuff(rd), stuff(rd), stuff(rd), stuff(rd)}); | |
std::cout << cell << "細胞 "; | |
} | |
std::cout << std::endl; | |
std::cout << cnt << "回目で陽性かくにん☆" << std::endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment