Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Make CSP great again
- #include <bits/stdc++.h>
- #define TASK "TESTCODE"
- using namespace std;
- const string NAME = "TESTCODE";
- mt19937 rd(chrono::steady_clock::now().time_since_epoch().count());
- long long Rand(long long l, long long r)
- {
- return l + rd() * 1LL * rd() % (r - l + 1);
- }
- void Gentest()
- {
- cout << Rand(1, 1e12);
- }
- void OutputTest()
- {
- }
- int main()
- {
- //ios_base::sync_with_stdio(false);
- //cin.tie(nullptr);
- int t; cin >> t;
- for (int i = 1; i <= t; ++ i)
- {
- ofstream inp((NAME + ".INP").c_str());
- Gentest();
- inp.close();
- system((NAME + ".exe").c_str());
- system((NAME + "_trau").c_str());
- if (system(("fc " + NAME + ".OUT " + NAME + ".ANS").c_str()) != 0)
- {
- cout << "TEST " << i << ": WRONG";
- OutputTest();
- return 0;
- }
- cout << "TEST " << i << ": CORRECT" << '\n';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement