Today I tried to solve
this problem
I wrote this
code
But it says compilation error.What do I need to do??? Help please! I thought right code is 5th from below!
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
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_sequance(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! I thought right code is 5th from below!
Rev. | Lang. | By | When | Δ | Comment | |
---|---|---|---|---|---|---|
en6 | MahmytM | 2024-06-13 12:09:11 | 20 | Tiny change: 'tdc++.h>\n#include "combo.h"\nusing na' -> 'tdc++.h>\nusing na' | ||
en5 | MahmytM | 2024-06-13 06:56:27 | 20 | Tiny change: 'tdc++.h>\nusing na' -> 'tdc++.h>\n#include "combo.h"\nusing na' | ||
en4 | MahmytM | 2024-06-12 19:38:00 | 4 | |||
en3 | MahmytM | 2024-06-12 19:31:55 | 41 | Tiny change: 'lp please!\nI thought right code is 5th from below!' -> 'lp please!' | ||
en2 | MahmytM | 2024-06-12 19:26:59 | 2 | Tiny change: 'guess_sequance(int n)' -> 'guess_sequence(int n)' | ||
en1 | MahmytM | 2024-06-12 18:52:53 | 895 | Initial revision (published) |
Name |
---|