02 2017 档案

摘要:比赛地址:http://qscoj.cn/contest/2/ 都是中文题,这里不在详述题意 A.喵哈哈村的魔法石 分析:暴力求解 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<cmath> 5 usin 阅读全文
posted @ 2017-02-21 20:51 wolf940509 阅读(266) 评论(0) 推荐(0)
摘要:Leetcode38. Count and Say 分析:根据题意,数列的下一项就是统计上一项中每个数字出现的次数,理解清楚题意就很简单了 1 class Solution { 2 public: 3 string solve(string s){ 4 string p=""; 5 int len= 阅读全文
posted @ 2017-02-20 13:05 wolf940509 阅读(143) 评论(0) 推荐(0)
摘要:分析:转化为字符串,然后按照字典序比较全排列,找出最大的 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<string> 5 #include<cmath> 6 using namespace std; 7 阅读全文
posted @ 2017-02-19 20:49 wolf940509 阅读(166) 评论(0) 推荐(0)