摘要: 比赛爆零== 简单来说 题意就是 给一个N 然后给了4种操作的代价 求最小的代价。用DFS搜索 #include<bits/stdc++.h> using namespace std; typedef long long ll; int main () { ios::sync_with_stdio( 阅读全文
posted @ 2020-05-24 20:10 LightAc 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 直接模拟就好了 class Solution { public: int isPrefixOfWord(string sentence, string searchWord) { int ans = 1; for(int j = 0; j < searchWord.size(); ++j) { if 阅读全文
posted @ 2020-05-24 14:24 LightAc 阅读(158) 评论(0) 推荐(0) 编辑
返回顶端