Today I tried to solve
this problem
I wrote this
code
But it says compilation error.What do I need to do??? Help please!
# | User | Rating |
---|---|---|
1 | tourist | 3856 |
2 | jiangly | 3747 |
3 | orzdevinwang | 3706 |
4 | jqdai0815 | 3682 |
5 | ksun48 | 3591 |
6 | gamegame | 3477 |
7 | Benq | 3468 |
8 | Radewoosh | 3462 |
9 | ecnerwala | 3451 |
10 | heuristica | 3431 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | -is-this-fft- | 162 |
3 | Dominater069 | 160 |
4 | Um_nik | 158 |
5 | atcoder_official | 156 |
6 | Qingyu | 152 |
6 | djm03178 | 152 |
6 | adamant | 152 |
9 | luogu_official | 149 |
10 | awoo | 147 |
How to solve this kind of problems???
Today I tried to solve
I wrote this
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ff first
#define ss second
#define pb push_back
string guess_sequence(int N){
string ans="";
for(int i=1;i<=N;i++){
int z=press(ans+'A');
int k=ans.size();
if(z==k+1){
ans+='A';
continue;
}
z=press(ans+'B');
if(z==k+1){
ans+='B';
continue;
}
z=press(ans+'X');
if(z==k+1){
ans+='X';
continue;
}
z=press(ans+'Y');
if(z==k+1){
ans+='Y';
continue;
}
}
return ans;
}
But it says compilation error.What do I need to do??? Help please!
Rev. | Lang. | By | When | Δ | Comment | |
---|---|---|---|---|---|---|
en6 |
![]() |
I_love_MahmytM | 2024-06-13 12:09:11 | 20 | Tiny change: 'tdc++.h>\n#include "combo.h"\nusing na' -> 'tdc++.h>\nusing na' | |
en5 |
![]() |
I_love_MahmytM | 2024-06-13 06:56:27 | 20 | Tiny change: 'tdc++.h>\nusing na' -> 'tdc++.h>\n#include "combo.h"\nusing na' | |
en4 |
![]() |
I_love_MahmytM | 2024-06-12 19:38:00 | 4 | ||
en3 |
![]() |
I_love_MahmytM | 2024-06-12 19:31:55 | 41 | Tiny change: 'lp please!\nI thought right code is 5th from below!' -> 'lp please!' | |
en2 |
![]() |
I_love_MahmytM | 2024-06-12 19:26:59 | 2 | Tiny change: 'guess_sequance(int n)' -> 'guess_sequence(int n)' | |
en1 |
![]() |
I_love_MahmytM | 2024-06-12 18:52:53 | 895 | Initial revision (published) |
Name |
---|