Gym - 100971J

摘要: 题目:http://codeforces.com/gym/100971/problem/J 题目理解:chrome翻译的其中一段文字:从每个自由细胞中,只有通过共享一侧的细胞移动,才有可能到达所有其他自由细胞。 所有细胞是连通的,AB之间连通。 阅读全文
posted @ 2018-07-17 14:42 Misko 阅读(192) 评论(0) 推荐(0) 编辑

万能头文件

摘要: 需要注意:1.用万能头文件的前提是编译器要有,没有就会编译错误,std::里边的这些东西被抽取出来是有理由的。ps.个人下的vs community没有 2.对于c++大工程而言,编译是以分钟计的,粗暴的包含所有会加大编译器负担,不过打OJ就没必要注意细节了,因为编译不算时长 阅读全文
posted @ 2018-07-17 11:47 Misko 阅读(870) 评论(0) 推荐(0) 编辑

HDU1075 What Are You Talking About

摘要: Problem Description Ignatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a hi 阅读全文
posted @ 2018-07-14 15:52 Misko 阅读(126) 评论(0) 推荐(0) 编辑

HDU 1263

摘要: 水果 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 10238 Accepted Submission(s): 4080 Problem Des 阅读全文
posted @ 2018-07-14 13:29 Misko 阅读(124) 评论(0) 推荐(0) 编辑

2.6map映照容器

摘要: 特点:①键值与映照数据一一对应 ②插入的键值不允许重复 ③比较函数只对元素的键值比较 ④用法与set相似,红黑树(搜索速度极快)的数据结构 头文件:#include<map>//包含对multimap多重映照的定义 2.6.1 map创建、元素插入和遍历访问 2.6.2 删除元素 erase();c 阅读全文
posted @ 2018-07-11 14:10 Misko 阅读(147) 评论(1) 推荐(0) 编辑

Gym - 100989F

摘要: 题目 You must have heard about Agent Mahone! Dr. Ibrahim hired him to catch the cheaters in the Algorithms course. N students cheated and failed this se 阅读全文
posted @ 2018-07-06 11:39 Misko 阅读(238) 评论(0) 推荐(0) 编辑