Submission #554437

#TimeUsernameProblemLanguageResultExecution timeMemory
554437amunduzbaevReconstruction Project (JOI22_reconstruction)C++17
0 / 100
0 ms212 KiB
#include "bits/stdc++.h" using namespace std; mt19937 rng(chrono::steady_clock::now().time_since_epoch().count()); const int inf = 1e8; signed main(){ ios::sync_with_stdio(0); cin.tie(0); int n = 20, m = n + uniform_int_distribution<int>(5, 7)(rng); cout<<n<<" "<<m<<"\n"; for(int i=0;i<m;i++){ int a, b, c; a = uniform_int_distribution<int>(1, n)(rng); b = uniform_int_distribution<int>(1, n - 1)(rng); c = uniform_int_distribution<int>(inf, inf * 10)(rng); if(b >= a) b++; cout<<a<<" "<<b<<" "<<c<<"\n"; } int q = 50; cout<<q<<"\n"; for(int i=0;i<q;i++){ int c = uniform_int_distribution<int>(inf, inf * 10)(rng); cout<<c<<"\n"; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...