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 | jiangly | 3898 |
2 | tourist | 3840 |
3 | orzdevinwang | 3706 |
4 | ksun48 | 3691 |
5 | jqdai0815 | 3682 |
6 | ecnerwala | 3525 |
7 | gamegame | 3477 |
8 | Benq | 3468 |
9 | Ormlis | 3381 |
10 | maroonrk | 3379 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | -is-this-fft- | 165 |
3 | Dominater069 | 161 |
4 | Um_nik | 159 |
4 | atcoder_official | 159 |
6 | djm03178 | 156 |
7 | adamant | 153 |
8 | luogu_official | 150 |
9 | awoo | 149 |
10 | TheScrasse | 146 |
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! I thought right code is 5th from below!
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 |
---|