欢迎来到PJCK的博客

随笔分类 -  JAVA----算法

摘要:题目背景 宇宙总统竞选 题目描述 地球历公元6036年,全宇宙准备竞选一个最贤能的人当总统,共有n个非凡拔尖的人竞选总统,现在票数已经统计完毕,请你算出谁能够当上总统。 输入输出格式 输入格式: president.in 第一行为一个整数n,代表竞选总统的人数。 接下来有n行,分别为第一个候选人到第 阅读全文
posted @ 2019-03-19 13:11 PJCK 阅读(186) 评论(0) 推荐(0)
摘要:1068 Bash游戏 V3 1068 Bash游戏 V3 1068 Bash游戏 V3 有一堆石子共有N个。A B两个人轮流拿,A先拿。每次拿的数量只能是2的正整数次幂,比如(1,2,4,8,16....),拿到最后1颗石子的人获胜。假设A B都非常聪明,拿石子的过程中不会出现失误。给出N,问最后 阅读全文
posted @ 2019-03-16 15:32 PJCK 阅读(133) 评论(0) 推荐(0)
摘要:(置顶,复习)A + B Again 链接:http://acm.hdu.edu.cn/showproblem.php?pid=2057 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)T 阅读全文
posted @ 2018-09-19 14:01 PJCK 阅读(264) 评论(0) 推荐(0)
摘要:平方和与立方和 链接:http://acm.hdu.edu.cn/showproblem.php?pid=2007 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submis 阅读全文
posted @ 2018-09-18 22:15 PJCK 阅读(311) 评论(0) 推荐(0)
摘要:The Hardest Problem Ever 链接:http://acm.hdu.edu.cn/showproblem.php?pid=1048 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Ot 阅读全文
posted @ 2018-09-17 12:06 PJCK 阅读(209) 评论(0) 推荐(0)
摘要:统计字符(很水) 链接:http://acm.hdu.edu.cn/showproblem.php?pid=1860 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submi 阅读全文
posted @ 2018-09-16 16:25 PJCK 阅读(191) 评论(0) 推荐(0)
摘要:Encoding 链接:http://acm.hdu.edu.cn/showproblem.php?pid=1020 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submi 阅读全文
posted @ 2018-09-16 14:49 PJCK 阅读(158) 评论(0) 推荐(0)
摘要:Ignatius and the Princess IV 链接:http://acm.hdu.edu.cn/showproblem.php?pid=1029 借鉴链接:https://blog.csdn.net/tigerisland45/article/details/52146154 Time 阅读全文
posted @ 2018-09-16 10:22 PJCK 阅读(116) 评论(0) 推荐(0)
摘要:一只小蜜蜂... 链接:http://acm.hdu.edu.cn/showproblem.php?pid=2044 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submi 阅读全文
posted @ 2018-09-15 17:34 PJCK 阅读(339) 评论(0) 推荐(0)
摘要:人见人爱A-B 链接:http://acm.hdu.edu.cn/showproblem.php?pid=2034 JAVA代码借鉴链接:https://blog.csdn.net/superbeauty/article/details/47065691 Problem Description 参加 阅读全文
posted @ 2018-09-14 22:16 PJCK 阅读(149) 评论(0) 推荐(0)
摘要:Probability 链接:http://acm.hdu.edu.cn/showproblem.php?pid=2131 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Su 阅读全文
posted @ 2018-09-14 18:21 PJCK 阅读(119) 评论(0) 推荐(0)
摘要:A == B ? 链接:http://acm.hdu.edu.cn/showproblem.php?pid=2054 Problem Description Give you two numbers A and B, if A is equal to B, you should print "YES 阅读全文
posted @ 2018-09-14 16:51 PJCK 阅读(325) 评论(0) 推荐(0)
摘要:Palindromes 链接:http://acm.hdu.edu.cn/showproblem.php?pid=2163 (此题是为了对于JAVA温故知新的) Problem Description Write a program to determine whether a word is a 阅读全文
posted @ 2018-09-12 21:54 PJCK 阅读(104) 评论(0) 推荐(0)
摘要:Computer Transformation Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 8688 Accepted Submission 阅读全文
posted @ 2018-06-11 12:18 PJCK 阅读(139) 评论(0) 推荐(0)
摘要:How Many Fibs? Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7007 Accepted Submission(s): 2761 阅读全文
posted @ 2018-06-11 12:13 PJCK 阅读(148) 评论(0) 推荐(0)
摘要:A == B ? Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 117898 Accepted Submission(s): 18821 Pr 阅读全文
posted @ 2018-06-11 12:09 PJCK 阅读(149) 评论(0) 推荐(0)
摘要:Exponentiation Time Limit: 2000/500 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 10319 Accepted Submission(s): 3027 阅读全文
posted @ 2018-06-11 12:06 PJCK 阅读(114) 评论(0) 推荐(0)
摘要:汉字统计 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 53302 Accepted Submission(s): 28875 Problem 阅读全文
posted @ 2018-06-11 09:08 PJCK 阅读(215) 评论(0) 推荐(0)
摘要:precise math function Time Limit : 3000/1000ms (Java/Other) Memory Limit : 65535/32768K (Java/Other) Total Submission(s) : 2 Accepted Submission(s) : 阅读全文
posted @ 2018-06-11 09:06 PJCK 阅读(226) 评论(0) 推荐(0)
摘要:Large Division Given two integers, a and b, you should check whether a is divisible by b or not. We know that an integer a is divisible by an integer 阅读全文
posted @ 2018-06-11 09:01 PJCK 阅读(189) 评论(0) 推荐(0)