随笔分类 -  【模拟】

摘要:算是最好写的一道题了吧,最近模拟没手感,一次过也是很鸡冻o(* ̄▽ ̄*)o注意事项都在代码里,没有跳坑也不清楚坑点在哪~ 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 us... 阅读全文

posted @ 2015-08-13 19:11 LLGemini 阅读(283) 评论(0) 推荐(0)

摘要:真心是道水题,但找bug找的我想剁手了/(ㄒoㄒ)/~~注意几个坑点,1、输入,getline(cin); / gets(); 一行输入,注意前面要加getchar(); 输入运行记录的时候可以采取scanf("%d %c %d %c");的方式,因为已经说一个整型数后面只有一个空格;2、该场没人... 阅读全文

posted @ 2015-08-12 21:39 LLGemini 阅读(257) 评论(0) 推荐(0)

摘要:给你一个二进制数,,每一位有一个权值,让你转格雷码,求所对应格雷码位为1的权值的和;二进制位中的某些位为?,你需要给这些问号赋值使得到的和最大。首先你得知道二进制转格雷码的规则,即格雷码位为【二进制位与左边前一位的异或值】,格雷码首位为二进制首位;因为格雷码首位为二进制首位,那么可以视二进制首位的左... 阅读全文

posted @ 2015-08-12 09:36 LLGemini 阅读(172) 评论(0) 推荐(0)

摘要:System DependenciesComponents of computer systems often have dependencies--other components that must be installed before they will function properly.... 阅读全文

posted @ 2015-03-14 10:21 LLGemini 阅读(580) 评论(0) 推荐(0)

摘要:When a student is too tired, he can't help sleeping in class, even if his favorite teacher is right here in front of him. Imagine you have a class of ... 阅读全文

posted @ 2015-03-12 19:12 LLGemini 阅读(477) 评论(0) 推荐(0)

摘要:1030 - Image Is EverythingTime limit: 3.000 secondsYour new company is building a robot that can hold small lightweight objects. The robot will have t... 阅读全文

posted @ 2015-02-25 18:30 LLGemini 阅读(257) 评论(0) 推荐(0)

摘要:这题看别人的。就是那么诚实。http://www.cnblogs.com/zhyfzy/p/4117481.htmlB. QueueDuring the lunch break allnBerland State University students lined up in the food co... 阅读全文

posted @ 2014-11-24 19:51 LLGemini 阅读(285) 评论(0) 推荐(0)

摘要:想麻烦了。这题真的那么水啊。。直接暴力模拟,1000次(看了网上的200次就能A)后判断是否全为0,否则就是LOOP; 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #inc... 阅读全文

posted @ 2014-09-25 21:19 LLGemini 阅读(318) 评论(0) 推荐(0)