![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
解题报告
Cross_yan
这个作者很懒,什么都没留下…
展开
-
Languages CSU-ACM2017暑期训练1-Debug与STL
#include#include#include#include#include#include#includeusing namespace std;string lg[109];vector keys[109];//long long store[109][300];int main(){ int n;cin>>n; string s; for原创 2017-07-24 16:37:29 · 152 阅读 · 0 评论 -
L1-011. A-B
本题要求你计算A-B。不过麻烦的是,A和B都是字符串 —— 即从字符串A中把字符串B所包含的字符全删掉,剩下的字符组成的就是字符串A-B。输入格式:输入在2行中先后给出字符串A和B。两字符串的长度都不超过104,并且保证每个字符串都是由可见的ASCII码和空白字符组成,最后以换行符结束。输出格式:在一行中打印出A-B的结果字符串。输入样例:I love ...原创 2018-03-11 20:17:40 · 303 阅读 · 0 评论 -
Can you find it? --CSU-ACM2017暑假集训2-二分搜索
Give you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, Bj, Ck, which satisfy the formula Ai+Bj+Ck = X. Input原创 2017-07-26 08:21:04 · 215 阅读 · 0 评论 -
Can you solve this equation?--CSU-ACM2017暑假集训2-二分搜索
Now,given the equation 8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y,can you find its solution between 0 and 100; Now please try your lucky.InputThe first line of the input contains an integer T(1Out原创 2017-07-26 08:50:26 · 388 阅读 · 0 评论 -
4 Values whose Sum is 0 --CSU-ACM2017暑假集训2-二分搜索
The SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, compute how many quadruplet (a, b, c, d ) ∈ A x B x C x D are such that a + b + c + d = 0 . In the followin原创 2017-07-26 08:58:27 · 209 阅读 · 0 评论 -
Monthly Expense--CSU-ACM2017暑假集训2-二分搜索
Farmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the exact amount of money (1 ≤ moneyi ≤ 10,000) that h原创 2017-07-26 09:09:45 · 153 阅读 · 0 评论 -
R2D2 and Droid Army--CSU-ACM2017暑假集训比赛1
An army of n droids is lined up in one row. Each droid is described by m integers a1, a2, ..., am, where ai is the number of details of the i-th type in this droid's mechanism. R2-D2 wants to destro原创 2017-07-26 17:32:37 · 208 阅读 · 0 评论 -
Function Run Fun--CSU-ACM2017暑期训练3-递推与递归
We all love recursion! Don't we? Consider a three-parameter recursive function w(a, b, c): if a 1 if a > 20 or b > 20 or c > 20, then w(a, b, c) returns: w(20, 20, 20) if a w(a,转载 2017-07-27 11:41:54 · 214 阅读 · 0 评论 -
后序遍历--CSU-ACM2017暑期训练4-dfs
描述在参与过了美食节之后,小Hi和小Ho在别的地方又玩耍了一阵子,在这个过程中,小Ho得到了一个非常有意思的玩具——一棵由小球和木棍连接起来的二叉树!小Ho对这棵二叉树爱不释手,于是给它的每一个节点都标记了一个标号——一个属于A..Z的大写字母,并且没有任意两个节点的标号是一样的。小Hi也瞅准了这个机会,重新巩固了一下小Ho关于二叉树遍历的基础知识~就这样,日子安稳的过了两原创 2017-07-28 11:50:16 · 327 阅读 · 0 评论 -
Languages--CSU-ACM2017暑期训练1-Debug与STL
The Enterprise has encountered a planet that at one point had been inhabited. The only remnant from the prior civilization is a set of texts that was found. Using a small set of keywords found in vari原创 2017-07-27 20:59:10 · 233 阅读 · 0 评论 -
L1-002. 打印沙漏
本题要求你写个程序把给定的符号打印成沙漏的形状。例如给定17个“*”,要求按下列格式打印***** *** * ********所谓“沙漏形状”,是指每行输出奇数个符号;各行符号中心对齐;相邻两行符号数差2;符号数先从大到小顺序递减到1,再从小到大顺序递增;首尾符号数相等。给定任意N个符号,不一定能正好组成一个沙漏。要求打印出的沙漏能用掉尽可能多的符号。输入格式:...原创 2018-03-04 23:03:11 · 118 阅读 · 0 评论