摘要:
1.建立一个shuffling数组,把j号卡放在shuffling[j]的位置AC代码://#include//#include #include#include //#include#include#include#include//#include#include//#include //#in... 阅读全文
posted @ 2015-11-16 16:44
siukwan
阅读(151)
评论(0)
推荐(0)
摘要:
1.统计各个数字出现的次数2.输出第一个出现次数为1的数字AC代码://#include//#include #include#include //#include#include#include#include//#include#include//#include //#include "fun... 阅读全文
posted @ 2015-11-16 13:46
siukwan
阅读(108)
评论(0)
推荐(0)
摘要:
1.getline输入数据2.最好使用manacher方法3.暴力方法解决不会超时暴力AC代码://#include//#include #include#include //#include#include#include#include//#include#include//#include /... 阅读全文
posted @ 2015-11-16 13:43
siukwan
阅读(137)
评论(0)
推荐(0)
摘要:
1.存在超时的危险2.根据题意,名字由3个字母和1个数字组成,所以共26*26*26*10=175760种可能,直接开辟内存AC截图://#include//#include #include#include //#include#include#include#include//#include#... 阅读全文
posted @ 2015-11-16 13:38
siukwan
阅读(152)
评论(0)
推荐(0)
摘要:
1.题目是把一些数,通过组合,变成一个最小的数(在这些数的所有组合中最小)2.使用贪心算法,贪心标准为:1)如果两个数中,数a是数b的前缀,或者数b是数a的前缀,那么判断字符串相加后a+b与b+a的大小,进行确定前后顺序2)如果不是上面1)中的两种情况,直接按照string进行大小比较3.该题目可以... 阅读全文
posted @ 2015-11-16 12:53
siukwan
阅读(132)
评论(0)
推荐(0)

浙公网安备 33010602011771号