mirror of
https://gitlab.com/mfocko/Codeforces.git
synced 2025-03-11 07:40:14 +01:00
chore(cpp): add RNG generator to skeleton
For details see: https://codeforces.com/blog/entry/61675 Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
afe1859bc6
commit
1d46d07ff9
1 changed files with 4 additions and 0 deletions
|
@ -258,6 +258,10 @@ inline void no() { std::cout << "NO\n"; }
|
|||
inline void yesno(bool ans) { std::cout << (ans ? "YES" : "NO") << "\n"; }
|
||||
#pragma endregion /* output */
|
||||
|
||||
#pragma region rng
|
||||
std::mt19937 rng(std::chrono::steady_clock::now().time_since_epoch().count());
|
||||
#pragma endregion /* rng */
|
||||
|
||||
#pragma endregion /* helpers */
|
||||
|
||||
// for ‹N› test cases, uncomment for single test case
|
||||
|
|
Loading…
Add table
Reference in a new issue