#P81. [Sleeping Cup #3] Grammar quiz
[Sleeping Cup #3] Grammar quiz
Person in charge
Attention
Solution submissions are prohibited for this problem.
This problem consists of sub-questions, each worth points, with a total score of points.
Questions
- For
mt19937
generating pseudo-random numbers, after how many random numbers is atwist
operation performed? - What is the period of pseudo-random numbers generated by
mt19937
? - Since which C++ version has Philox engine been supported for generating pseudo-random numbers?
- Which Codeforces problem examines the
twist
operation ofmt19937
? - In C++14, how can you use STL and the default random number generator (seeded with
time(0)
) to shuffle avector<int> v
?
Hints
- You need to fill in a positive integer.
- You need to fill in a LaTeX inline formula with a dollar sign and no spaces.
- You need to fill in a string prefixed with
C++
, indicating a C++ version. - You need to fill in a string prefixed with
CF
, representing a Codeforces problem. - You need to fill in a string without
std::
or spaces, representing a line of C++ code.
Example Answer Format
233
$2\times(n-1)^{n+1}$
C++98
CF4A
cout<<v.size()<<endl;
Answer Area
- {{ input(1) }}
- {{ input(2) }}
- {{ input(3) }}
- {{ input(4) }}
- {{ input(5) }}