ACM
一只路过的弱鸡
不会就学不懂就问
展开
-
You Are the One
HDU - 4283DescriptionThe TV shows such as You Are the One has been very popular. In order to meet the need of boys who are still single, TJUT hold the show itself. The show is hold in the Small hall...原创 2019-12-19 21:55:47 · 214 阅读 · 0 评论 -
Make Them Odd
Make Them Oddtime limit per test3 secondsmemory limit per test256 megabytesinput: standard inputoutput: standard outputThere are n positive integers a1,a2,…,an. For the one move you can choose an...原创 2019-12-19 20:50:09 · 250 阅读 · 0 评论 -
Yet Another Broken Keyboard
C. Yet Another Broken Keyboardtime limit per test2 secondsmemory limit per test256 megabytesinput: standard inputoutput: standard outputRecently, Norge found a string s=s1s2…sn consisting of n lo...原创 2019-12-19 20:33:41 · 286 阅读 · 0 评论 -
As Simple as One and Two
C. As Simple as One and Twotime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a non-empty string s=s1s2…sn, which consists only of...原创 2019-12-19 20:17:20 · 237 阅读 · 0 评论 -
HDU 2614 Beat (dfs)
HDU 2614 Beat (dfs)Time limit 2000 msMemory limit 32768 kBOS WindowsProblem DescriptionZty is a man that always full of enthusiasm. He wants to solve every kind of difficulty ACM problem in the w...原创 2019-02-22 14:17:35 · 192 阅读 · 2 评论 -
特立独行的幸福
2019天梯赛L2-1 特立独行的幸福作者: 陈越单位: 浙江大学时间限制: 400 ms内存限制: 64 MB代码长度限制: 16 KBProblem Description对一个十进制数的各位数字做一次平方和,称作一次迭代。如果一个十进制数能通过若干次迭代得到 1,就称该数为幸福数。1 是一个幸福数。此外,例如 19 经过 1 次迭代得到 82,2 次迭代后得到 68,3 次迭代后...原创 2019-03-31 16:43:14 · 3938 阅读 · 0 评论 -
看似数学题 (思维)
Description给定一个数组A,长度为N。给一个整数K,你需要找到满足如下条件数组B:1、数组长度也是N;2、数组中每个数字都是不超过K的正整数;3、存在两个正整数X和Y,使得A[i] * X == B[i] * Y 对所有1<=i<=N都成立。求出满足这样条件的数组的个数。Input第一行两个整数N和K。第二行N个整数,表示数组A。数据范围:1 <=...原创 2019-09-05 21:19:28 · 167 阅读 · 0 评论 -
Fishing Master (思维+贪心)
题目网站:http://acm.hdu.edu.cn/showproblem.php?pid=6709Problem DescriptionHeard that eom is a fishing MASTER, you want to acknowledge him as your mentor. As everybody knows, if you want to be a MASTER’...原创 2019-09-05 21:49:25 · 903 阅读 · 1 评论 -
T-primes(预处理判断素数)
B. T-primes(CF-230B)time limit per test : 2 secondsmemory limit per test : 256 megabytesinput : standard inputoutput : standard outputDescriptionWe know that prime numbers are positive integers...原创 2019-10-02 00:45:38 · 1356 阅读 · 1 评论