摘要: 水题 include include include include using namespace std; bool jud(char a){ if(isdigit(a)||islower(a)||isupper(a)||a=='.')return true; else return false 阅读全文
posted @ 2018-08-16 21:44 路明天 阅读(602) 评论(0) 推荐(0) 编辑
摘要: 水提水题,直接贴代码啦 include include using namespace std; struct ppp{ int id; int juli; }arr[10005]; bool cmp(ppp A,ppp B){ return A.juli 阅读全文
posted @ 2018-08-16 21:42 路明天 阅读(255) 评论(0) 推荐(0) 编辑
摘要: //这题不是我耍流氓,实在太简单,只能直接贴代码了,凑个数 阅读全文
posted @ 2018-08-16 21:39 路明天 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 第一层循环,用来循环计算第几个元素 第二层用来计算当前元素的下一个 include include char aaa[100000] = { '\0' }; int main() { int N; scanf("%c %d",&aaa[0], &N); for (int i = 2; i 阅读全文
posted @ 2018-08-16 20:42 路明天 阅读(612) 评论(0) 推荐(0) 编辑
摘要: 终于做的有点眉目了,今天学习了一点stl的皮毛,解题瞬间变容易了 下边开始分析本题 这道题如果用纯c解决实在太麻烦,试了半天两个超时,果断放弃,还是用map方便; 我的方法与柳神的方法是有区别的,我只是用map来保存学校在结构体数组中的地址。 代码中每一块都有注释,绝对不是耍流氓的直接贴一片代码, 阅读全文
posted @ 2018-08-16 18:34 路明天 阅读(727) 评论(0) 推荐(0) 编辑