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 | 3993 |
2 | jiangly | 3743 |
3 | orzdevinwang | 3707 |
4 | Radewoosh | 3627 |
5 | jqdai0815 | 3620 |
6 | Benq | 3564 |
7 | Kevin114514 | 3443 |
8 | ksun48 | 3434 |
9 | Rewinding | 3397 |
10 | Um_nik | 3396 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 155 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
10 | djm03178 | 152 |
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 | 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 |
---|