![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
USACO
雄性皮卡丘
。。
展开
-
USACO | Greedy Gift Givers
题目链接 题意就是给定人员,每次从其中一个人拿出一定数值,平分给特定的几个人(无法整数平分的剩余部分则保留),经过N次这样的步骤后输出各自最后拥有的数值大小。下面是C++实现/* ID: imzheng1 PROG: gift1 LANG: C++ */#include<iostream> #include<fstream> #include<string> using namespace std原创 2017-04-11 15:25:29 · 321 阅读 · 0 评论 -
USACO | Your Ride Is Here
题目链接简单说一下题意,就是任给两个字符串,分别算出两个字符串中每个字母对应数字乘积,再各自模47,若取模后值相等,则返回GO,否则返回STAY。下面是C++实现/* ID: imzheng1 PROG: ride LANG: C++ */#include <iostream> #include <fstream> #include <string> using namespace std;int原创 2017-04-02 00:35:27 · 358 阅读 · 0 评论