摘要: 1.用string记录ID2.熟悉sort函数的用法,选取合适的范围排序3.题目要求:相同分数的排名相同,分数相同的情况下ID需要按照递增排列//#include//#include #include#include //#include#include#include#include//#incl... 阅读全文
posted @ 2015-11-07 13:21 siukwan 阅读(134) 评论(0) 推荐(0)
摘要: 1.使用string存储数字2.用朴素的方法检测回文3.需要考虑进位,和首位为0的情况(字符串翻转相加,为了避免长度不等,不需要去掉前面的‘0’)//#include//#include #include#include //#include#include#include#include//#in... 阅读全文
posted @ 2015-11-07 11:18 siukwan 阅读(122) 评论(0) 推荐(0)
摘要: 1.20位的数字,超过了unsigned long long的取值2.采用string进行存储和检测3.用哈希进行相同位检测//#include//#include #include#include //#include#include#include#include//#include//#inc... 阅读全文
posted @ 2015-11-07 10:53 siukwan 阅读(149) 评论(0) 推荐(0)