版本比较
P14258 好感(favor)题解
正文
增加 1 行删除 1 行
102 行未改动全部展开103104105106107107108109110111112102 行未改动全部展开 if(a[head] == 0){a[head] = 3;ans2 += 1;continue;} if(a[tail] == 0){ans2 += (tail - head + 1);head ++, tail --;} else tail --; }// while(1){;} // while(1){;} cout << min(ans1, ans2) << '\n'; } return 0;}```