- 博客(11)
- 收藏
- 关注
原创 通过子函数排序三个字符串
题目描述:写一个函数实现将三个字符串排序#include<iostream>#include<cstring>using namespace std;void fun2(char a[],char b[],char c[]); int main(){ char str1[80] = "", str2[80] = "", str3[80] = ""; ci...
2020-04-25 10:30:13
382
原创 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
原创 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
原创 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
原创 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
原创 机器学习的开始
机器学习的开始今天被安排的任务是:安装python安装jupyter notebook安装必要的包:numpy, pandas, matplotlib因为之前已经安装了python 3.7,所以第一项直接完成。不过网上有太多的教程了,简直就差直接交出鼠标,所以第一项还是挺简单的。第二项,emm,小白对于jupyter notebook一脸懵逼,于是百度了下用途跟安装,就直接安装了a...
2019-11-07 10:26:23
96
原创 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
原创 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
原创 看似数学题 (思维)
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
原创 特立独行的幸福
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
原创 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
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人