PAT 1039. 到底買不買(20)

  題目鏈接:https://www.patest.cn/contests/pat-b-practise/1039 解題思路:自己剛開始想的是用兩個字符串來做,搜別人題解的時候發現別人一種很好的解題思路,是用string做的,感覺做的很巧妙 具體的代碼如下: #include<bits/stdc++.h> using namespace std; int main() { string
相關文章
相關標籤/搜索