编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#20395 #5. 慢速排序/交互题测试 Accepted 100 605 ms 404 K C++ 17 / 542 B 192024211550 2024-12-13 18:28:09
显示原始代码
#include <bits/stdc++.h>
#define ll long long

#define ce cerr

using namespace std;
const int inf = 0x3f3f3f3f;

int t;

void solve() {
    int n;
    cin >> n;
    for (int i = 1; i <= n; ++i) {
        for (int j = i + 1; j <= n; ++j) {
            cout << "c"
                 << " " << i << " " << j << "\n";
            char op;
            cin >> op;
            if (op == '>') {
                cout << "s"
                     << " " << i << " " << j << "\n";
            }
        }
    }
    cout << "e"
         << "\n";
    return;
}
int main() {
    cin >> t;
    while (t--) {
        solve();
    }
    return 0;
}
子任务 #1
Accepted
得分:100
测试点 #1
Accepted
得分:100
用时:62 ms
内存:404 KiB

输入文件(1.in

1
100
743781 147215 632500 733399 151404 855564 158551 538029 58980 958050 361539 339637 566899 98
<599 bytes omitted>

Special Judge 信息

Congratulations! You did right job!

系统信息

Exited with return code 0
测试点 #2
Accepted
得分:100
用时:4 ms
内存:396 KiB

输入文件(2.in

1
3
1 2 3

Special Judge 信息

Congratulations! You did right job!

系统信息

Exited with return code 0
测试点 #3
Accepted
得分:100
用时:539 ms
内存:404 KiB

输入文件(3.in

1
300
743781 147215 632500 733399 151404 855564 158551 538029 58980 958050 361539 339637 566899 98
<1978 bytes omitted>

Special Judge 信息

Congratulations! You did right job!

系统信息

Exited with return code 0