QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#664575#7156. Find the Boxspycoderyt#TL 0ms0kbC++14747b2024-10-21 21:17:182024-10-21 21:17:20

Judging History

你现在查看的是最新测评结果

  • [2024-10-21 21:17:20]
  • 评测
  • 测评结果:TL
  • 用时:0ms
  • 内存:0kb
  • [2024-10-21 21:17:18]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
int n,m,x,y;
int main(){
    int cnt = 0;
    cin>>n>>m;
    while(1) {
        string st;
        for(int i = 0;i<cnt;i++) st.push_back('v');
        for(int j = 0;j<m;j++) st.push_back('>');
        cout << "? " << st << "\n"; cout.flush();
        cin>>x>>y;
        if(y!=m-1) {
            cout << "! " << x << " " << y << "\n";
            cout.flush();
            return 0;
        }
    }
}
/*

For C++ programs, first compile it (e.g. with g++ -g -O2 -std=gnu++17 -static
solution.cpp -o solution.out) and then run:
python3 testing_tool.py ./solution.out <<<"4 5 2 3"

/usr/bin/g++ -g -O2 -std=gnu++17 boxbrute.cpp -o solution.out
./solution.out <<< "4 5 2 3"

*/

詳細信息

Test #1:

score: 0
Time Limit Exceeded

input:

4 5
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
0 4
...

output:

? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>>>>
? >>...

result: