1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #include <random> #include <iostream> using namespace std; int n, ans; int main() { random_device rd; mt19937 gen(rd()); cin >> n; for (int i = 0; i < n; ++i) ans += rd() % 100; cout << ans << '
'; return 0; } | cs |
이거 당첨되느니 로또가 빠르려나
테스트 케이스 연속 당첨
랜덤 디스티리부션 냅두고 왜 모듈로질이지 - return 0;