• VNOJ
  • Home
  • PRoblems
  • Submissions
  • Users
    >
    • Organizations
  • Contests
  • Tag
  • About
    >
    • FAQ
    • Custom checker
    • Judges
    • Devlog
    • Github
    • Tickets
  • Wiki
  • Thư viện đề thi
VI EN Log in  or  Sign up

vqt

  • About
  • Statistics
  • Blogs

Problems solved: 131
Rank by points: #761
Total points: 36.48
Contribution points: -61

View submissions

3 contests written
Rank by rating: #501
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 💙

123

#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;
}

DSU

Segtree

ZIP

Ckn + fastPower

Badges & Awards

This user has not earned any badges or awards.

«    »
Sun
Mon
Tues
Wed
Thurs
Fri
Sat
Less
More

Rating history

, #

proudly powered by DMOJ | follow us on Github and Facebook