| Task: | TLE on Train Schedule |
| Sender: | ind1f |
| Submission time: | 2025-11-24 17:12:18 +0200 |
| Language: | C++ (C++17) |
| Status: | READY |
| Result: | WRONG ANSWER |
| test | verdict | time | |
|---|---|---|---|
| #1 | WRONG ANSWER | 0.01 s | details |
Code
#include <iostream>
#include <random>
#include <cassert>
#include <chrono>
std::mt19937 rng(std::chrono::high_resolution_clock::now().time_since_epoch().count());
int random(int l, int r) {
assert(l <= r);
return std::uniform_int_distribution<int>(l, r)(rng);
}
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(0);
int n = 100000;
std::cout << n << '\n';
int s = (int) sqrt(n);
for (int i = 1; i <= n; i++) {
std::cout << random(1, std::min(s, 10)) << ' ';
}
return 0;
}
