摘要: 题目传送门 1 /* 2 水题:找排序找中间的价格,若有两个,选价格大的; 3 写的是有点搓:) 4 */ 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include... 阅读全文
posted @ 2015-04-26 15:48 Running_Time 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 题目传送门 1 /* 2 水题:已知1928年1月1日是星期日,若是闰年加1,总天数对7取余判断就好了; 3 */ 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #i... 阅读全文
posted @ 2015-04-26 15:43 Running_Time 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 题目传送门 1 /* 2 模拟:手敲map一一映射,累! 3 除了忘记读入字符串不能用gets用getline外还是很顺利的AC了:) 4 */ 5 #include 6 #include 7 #include 8 #include 9 #include 10 #in... 阅读全文
posted @ 2015-04-26 13:46 Running_Time 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 题目传送门 1 /* 2 水题:) 3 */ 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include 13 #include 14 u... 阅读全文
posted @ 2015-04-26 13:38 Running_Time 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 题目传送门水题,找出出现次数最多的数字,若多个输出Nobody//#include //using namespace std;#include //stdio.h#include //string.h#include const int N = 1e3 + 5;struct Hash ... 阅读全文
posted @ 2015-04-26 13:37 Running_Time 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 题目传送门 1 /* 2 DP:dp 表示当前输入的x前的包含x的子序列的和, 3 求和方法是找到之前出现x的位置(a[x])的区间内的子序列; 4 sum 表示当前输入x前的所有和; 5 a[x] 表示id; 6 详细解释:http:... 阅读全文
posted @ 2015-04-26 12:58 Running_Time 阅读(709) 评论(1) 推荐(1) 编辑
摘要: 题目传送门 1 /* 2 题意:找出符合 A^B > max (A, B) 的组数; 3 位运算:异或的性质,1^1=0, 1^0=1, 0^1=1, 0^0=0;与的性质:1^1=1, 1^0=0, 0^1=0, 0^0=0; 4 假设A B(即0^1=1)... 阅读全文
posted @ 2015-04-26 10:48 Running_Time 阅读(341) 评论(0) 推荐(0) 编辑