随笔分类 -  BestCoder

摘要:1001首先读进来的时候把字母和数字都转换成0到35的数字,加起来直接取模,算出答案。 坑点是只有1个数的情况,还有答案等于0的时候也要输出一行一个0。注意去掉前导0,因为求和过程也有可能产生0,所以求完和在去0。#include #include #include #include #includ... 阅读全文
posted @ 2015-03-24 17:47 Summer先生 阅读(158) 评论(0) 推荐(0)
摘要:1001 Go to movie水。#include #include #include #include #include #include #include #include #include using namespace std;#define read() freopen("data.in... 阅读全文
posted @ 2015-03-21 23:04 Summer先生 阅读(127) 评论(0) 推荐(0)
摘要:理解好排序的方式就行。差值不一样,降序差值一样,按照第二个数值升序差值一样并且第二个数值也一样,按照id进行升序#include #include #include #include #include #include #include #include #include using namespa... 阅读全文
posted @ 2015-03-08 01:23 Summer先生 阅读(221) 评论(0) 推荐(0)
摘要:题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=5162发现自己写的max宏有点问题改成这样:#define max(a,b) ((a>b)?(a):(b)),后面的返回值也要一个括号#include #include #include #include... 阅读全文
posted @ 2015-01-25 15:29 Summer先生 阅读(280) 评论(0) 推荐(0)