摘要: https://www.patest.cn/contests/gplt/L2-002 L2-002. 链表去重 时间限制 300 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 陈越 时间限制 300 ms 时间限制 300 ms 内存限制 65536 阅读全文
posted @ 2017-03-17 16:55 kimsimple 阅读(314) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2057 涉及到16进制内的加法,可以用%I64x直接来处理,要注意到16进制中负数是用补码来表示的。一个比较困惑的事实是,这道题再输出时,%64X中‘X’必须是大写,小写是过不了的。 注意:__int64 %I64 阅读全文
posted @ 2017-03-17 14:00 kimsimple 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=3790 最短路径问题 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submiss 阅读全文
posted @ 2017-03-16 19:16 kimsimple 阅读(213) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 60492 Accepted Submission(s): 26632 Problem Descr 阅读全文
posted @ 2017-03-14 18:25 kimsimple 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 2^x mod n = 1 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 16883 Accepted Submission(s): 5262 阅读全文
posted @ 2017-03-13 22:21 kimsimple 阅读(209) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2553 在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。你的任务是,对于给定的N,求出有多少种合法的放置方法。 Input 共有 阅读全文
posted @ 2017-03-11 11:55 kimsimple 阅读(203) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1016 Sample Input 6 8 6 8 Sample Output Case 1: 1 4 3 2 5 6 1 6 5 2 3 4 Case 2: 1 2 3 8 5 6 7 4 1 2 5 8 3 4 阅读全文
posted @ 2017-03-11 11:24 kimsimple 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 全排列输入一个数n,按字典序输出1-n的全排列 阅读全文
posted @ 2017-03-11 11:11 kimsimple 阅读(419) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1241 题意:求几个油田 阅读全文
posted @ 2017-03-11 10:43 kimsimple 阅读(136) 评论(0) 推荐(0) 编辑
摘要: L3-003. 社交集群 时间限制 1000 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 陈越 时间限制 1000 ms 时间限制 1000 ms 内存限制 65536 kB 内存限制 65536 kB 代码长度限制 8000 B 代码长度限制 8 阅读全文
posted @ 2017-03-11 09:05 kimsimple 阅读(1421) 评论(0) 推荐(0) 编辑