Problems solved: 131
Rank by points: #1581
Total points:
36.11
Contribution points:
-137
3 contests written
Rank by rating: #775
Rating: 1742
Min. rating: 1538
Max rating: 1742
From Trường THPT chuyên Vĩnh Phúc
About
Status: Tạm nghỉ
Twinkle, twinkle, little star, how I wonder what you are ...
💙 Best wishes for you 💙
#include <bits/stdc++.h>
using namespace std;
const string NAME = "VOI23";
const int NTEST = 100;
mt19937 rd(chrono::steady_clock::now().time_since_epoch().count());
#define rand rd
int Rand(int l, int h) {
assert(l <= h);
return l + rd() % (h - l + 1);
}
int main() {
srand(time(NULL));
for (int iTest = 1; iTest <= NTEST; iTest++) {
ofstream inp((NAME + ".inp").c_str());
inp.close();
system((NAME + ".exe").c_str());
system((NAME + "_trau.exe").c_str());
if (system(("fc " + NAME + ".out " + NAME + ".ans").c_str()) != 0) {
cout << "Test " << iTest << ": WRONG!\n";
return 0;
}
cout << "Test " << iTest << ": CORRECT!\n";
}
return 0;
}
Badges & Awards
This user has not earned any badges or awards.Rating history
, #