How to realize ACwing flipping coins
This article mainly explains how to flip coins in ACwing. Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to flip coins with ACwing.
# include # include using namespace std;const int N = 100 int nPortchar in [N], out [N]; void turn (int u) {if (in [u] = ='*') in [u] = 'o'; else in [u] =' *'; return;} int main () {cin > > in; cin > > out; n=strlen (in); int res / / check the in/out, and turn it over if different, until the penultimate item for (int item0)