ACM-简单题
寻找星空的孩子
CSDN博客首页:http://blog.csdn.net/u010579068?viewmode=list
博客园地址:http://www.cnblogs.com/yuyixingkong/
展开
-
Girls' research(hdu3294+Manacher算法)
Girls' researchTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1027 Accepted Submission(s): 389Problem Description One day, s原创 2015-08-23 16:09:33 · 1840 阅读 · 0 评论 -
CO-PRIME(初探 莫比乌斯)NYOJ1066(经典)gcd(a,b)=1
CO-PRIME时间限制:1000 ms | 内存限制:65535 KB难度:3描述This problem is so easy! Can you solve it?You are given a sequence which contains n integers a1,a2……an, your task is to find how many pa原创 2015-08-17 16:11:43 · 1564 阅读 · 0 评论 -
Calendar Game(找规律+博弈)
A - Calendar GameTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice ZOJ 1024Appoint description: System Crawler (2015-08-02)Descrip原创 2015-08-05 15:24:28 · 1581 阅读 · 1 评论 -
Teams(uva11609+组合)
I - TeamsTime Limit:1000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVA 11609 题意:有n个人,选多个人参加比赛,其中一个是队长,队长不同其他选手相同也算作不同的方案,。问你一共有多少种方案。思路:自己才纸上稍微推理一下,n原创 2015-06-11 21:30:18 · 1074 阅读 · 0 评论 -
Minimum Sum LCM(uva10791+和最小的LCM+推理)
L - Minimum Sum LCMTime Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVA 10791 题意:输入正整数n,找至少两个数,使得他们的LCM为n且要输出最小的和; 思路:既然LCM是n,那么一定是原创 2015-06-11 21:20:35 · 1107 阅读 · 0 评论 -
First Date (hnoj12952)日期计算
First DateTime Limit: 3000ms, Special Time Limit:7500ms, Memory Limit:65536KBTotal submit users: 77, Accepted users: 46Problem 12952 : No special judgementProblem description原创 2015-03-23 11:30:30 · 629 阅读 · 0 评论 -
两车追及或相遇问题(hdu1275)数学题
两车追及或相遇问题Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 902 Accepted Submission(s): 259Problem Description外号叫“猪头三”的小学生在数学课上,经常遇到两车相遇或追及原创 2015-03-23 11:29:07 · 1656 阅读 · 0 评论 -
火星A+B(hdu1230)进制转化
火星A+BTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 10634 Accepted Submission(s): 3547Problem Description读入两个不超过25位的火星正整数A和B,计算A+B。需要注意原创 2015-03-23 11:29:51 · 542 阅读 · 0 评论 -
素数回文(hdu1431)
素数回文Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 9266 Accepted Submission(s): 2167 Problem Descriptionxiaoou33对既是素数又是回文的数特别感兴趣。比如说1原创 2015-03-23 11:27:35 · 644 阅读 · 0 评论 -
Hashmat the brave warrior(UVa10055)简单题
Problem AHashmat the brave warriorInput: standard inputOutput: standard output Hashmat is a brave warrior who with his group of young soldiers moves from one place to another to fight agains原创 2015-03-23 11:27:31 · 668 阅读 · 0 评论 -
盐水的故事(hdu1408)
盐水的故事Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 11672 Accepted Submission(s): 2809 Problem Description挂盐水的时候,如果滴起来有规律,先是滴一滴,停一下;然原创 2015-03-23 11:27:16 · 663 阅读 · 0 评论 -
UVA12493 - Stars(求1-N与N互质的个数)欧拉函数
UVA12493 - Stars(求1-N与N互质的个数)欧拉函数 bnuoj26358原创 2015-08-17 12:55:16 · 2440 阅读 · 0 评论 -
Gray code(hdu5375+异或二进制的规律)
Gray code2015 Multi-University Training Contest 7Problem DescriptionThe reflected binary code, also known as Gray code after Frank Gray, is a binary numeral system where two successive values differ in only onebit (binary digit). The reflected binary co原创 2015-08-11 23:44:36 · 1211 阅读 · 0 评论 -
最长回文 (hdu3068 && poj3974)Palindrome
最长回文Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 11771 Accepted Submission(s): 4315Problem Description 给出一个只由小写英文字符a,b,c..原创 2015-08-23 16:02:32 · 1206 阅读 · 0 评论 -
吉哥系列故事——完美队形II(hdu4513+Manacher)
吉哥系列故事——完美队形IIProblem Description 吉哥又想出了一个新的完美队形游戏! 假设有n个人按顺序站在他的面前,他们的身高分别是h[1], h[2] ... h[n],吉哥希望从中挑出一些人,让这些人形成一个新的队形,新的队形若满足以下三点要求,则就是新的完美队形:原创 2015-08-23 16:17:19 · 1411 阅读 · 0 评论 -
邂逅明下(巴什博弈+hdu2897)
H - 邂逅明下Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u每行有三个数字n,p,q,表示一堆硬币一共有n枚,从这个硬币堆里取硬币,一次最少取p枚,最多q枚,如果剩下少于p枚就要一次取完。两人轮流取,直到堆里的硬币取完,最后一次取硬币的算输。对于每一行的三个数字,给出先取的人是否有必胜策略,如果有回答WIN,否则回答LOST。原创 2015-08-06 11:19:47 · 943 阅读 · 1 评论