藍橋杯 完美的代價(字符串,貪心)

  #include <bits/stdc++.h> using namespace std; int n,flag=0,cnt=0; string s; int main() { scanf("%d",&n); cin>>s; int last=n-1; for(int i=0;i<last;i++)//檢索範圍:第一個元素開始~倒數第二個元素 f
相關文章
相關標籤/搜索