CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iostream>
#include <string>
using namespace std;
int main() {
string Floor;
cin>>Floor;
//getline(cin,Floor);
int Counter =0;
int Count=0;
bool G;
bool T;
for(int ch =0; ch<Floor.length(); ch++ ){
Counter+=1;
if(Floor[ch] =='$'){
/* for(int ch =Counter; ch<Floor.length(); ch++ ){
if (Floor[ch] =='G') {G= true;}
else if(Floor[ch]=='T'){ G=false;}
else{G=true;}}
} */
Count=Counter;
}}
for(int ch =Count; ch<Floor.length(); ch++ ){
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run