Logo Wy Online Judge

WyOJ

FiraCode
lzx=lgx
FiraCode Avatar

有啥问题请前往评论区

#include <bits/stdc++.h>


using namespace std;

int main() {
    freopen("problem.conf", "w", stdout);

    bool G;
    cout << "use_builtin_judger on" << endl;
    cerr << "has special judge?" << endl; cin >> G;
    if (!G)
        cout << "use_builtin_checker wcmp\n";

    cout << "n_ex_tests 0\n\
n_sample_tests 0" << endl;
    cerr << "tests count:" << endl;
    int x; cin >> x;
    cout << "n_tests " << x << endl;
    cerr << "subtask count:" << endl;
    int y; cin >> y;
    if (y) {
        cout << "n_subtask " << y << endl;
        for (int i = 1; i <= y; ++i) {
            cerr << "subtask " << i << " end:" << endl;
            int x; cin >> x;

            cout << "subtask_end_" << i << ' ' << x << endl;   

            cerr << "subtask " << i << " score:" << endl;
            cin >> x;

            cout << "subtask_score_" << i << ' ' << x << endl;
        }
    }

    int a;
    cerr << "Time limit(s):" << endl; cin >> a;
    cout << "time_limit " << a << endl;
    cerr << "Memory limit(mb):" << endl; cin >> a;
    cout << "memory_limit " << a << endl;

    string s; bool t;
    cerr << "has same pre?" << endl; cin >> t;
    if (t) { 
        cerr << "input_pre:" << endl; cin >> s;
        cout << "input_pre " << s << endl;
        cerr << "output_pre:" << endl; cin >> s;
        cout << "output_pre " << s << endl;   
    } else {
        cout << "has_input_pre false" << endl;
        cout << "has_output_pre false" << endl;
    }
    cerr << "input_suf:" << endl; cin >> s;
    cout << "input_suf " << s << endl;
    cerr << "output_suf:" << endl; cin >> s;
    cout << "output_suf " << s << endl;

    return 0;
}
Rating
1767 (±66)
Rating 排名
#21
QQ
Unfilled
注册时间
2025-03-31 13:34:01
Rating changes
Rating 分布