Appreciation to our TA, 王毅峰, who designed this task. 问题描述 Give you N numbers a[1]...a[n] and M numbers b[1]...b[m] For each b[k], if we can find i,j a[i] + a[j] = b[k] or a[i] = b[k] , we say k is a good number. And you should only output the number…
Appreciation to our TA, +7, who designed this task. Client.cpp #include <iostream> #include <string> #include "Factory.hpp" #include "Product.hpp" int main() { UIFactory* ui = 0; int choose; std::cin >> choose; switch…
题目 Source http://acm.hdu.edu.cn/showproblem.php?pid=5977 Description When God made the first man, he put him on a beautiful garden, the Garden of Eden. Here Adam lived with all animals. God gave Adam eternal life. But Adam was lonely in the garden, s…
题目链接: Garden of Eden Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 210 Accepted Submission(s): 75 Problem Description When God made the first man, he put him on a beautiful garden, the G…