# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1174053 | _ncng.nyr | Nile (IOI24_nile) | C++20 | 0 ms | 0 KiB |
#include<bits/stdc++.h>
using namespace std;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
long long ra(long long l, long long r) {
return l + rng() % (r - l + 1);
}
int main() {
for(int test = 1; test <= 1000; test++) {
cerr << "Test Case #" << test << ":\n";
ofstream inp("task.inp");
int n = ra(3, 4);
inp << n << "\n";
int lim = 20;
for(int i = 1; i <= n; i ++) {
int A = ra(2, 10);
inp << ra(1, lim) << " " << A << " " << ra(1, A - 1) << "\n";
}
int q = 10;
inp << q << "\n";
while(q--) {
inp << ra(1, lim) << " ";
}
inp.close();
system ("code.exe");
system ("codew.exe");
if (system ("fc task.out task.ans")) exit(0);
}
}