![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
思维
一只路过的弱鸡
不会就学不懂就问
展开
-
Make Them Odd
Make Them Odd time limit per test3 seconds memory limit per test256 megabytes input: standard input output: standard output There are n positive integers a1,a2,…,an. For the one move you can choose an...原创 2019-12-19 20:50:09 · 250 阅读 · 0 评论 -
As Simple as One and Two
C. As Simple as One and Two time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandard output You are given a non-empty string s=s1s2…sn, which consists only of...原创 2019-12-19 20:17:20 · 237 阅读 · 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=6709 Problem Description Heard 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 评论