Today is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ignatiu...

Today is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ignatiu...
今年暑假杭电ACM集训队第一次组成女生队,其中有一队叫RPG,但做为集训队成员之一的野骆驼竟然不知道RPG三个人具体是谁谁。RPG给他机会让他猜猜,第一次猜:R是公主,P是草...
国庆期间,省城HZ刚刚举行了一场盛大的集体婚礼,为了使婚礼进行的丰富一些,司仪临时想出了有一个有意思的节目,叫做"考新郎",具体的操作是这样的: 首先,给每位新娘打扮得几乎一...
The GeoSurvComp geologic survey company is responsible for detecting underground oil de...
In a city there are n bus drivers. Also there are n morning bus routes and n afternoon ...
要求(A/B)%9973,但由于A很大,我们只给出n(n=A%9973)(我们给定的A必能被B整除,且gcd(B,9973) = 1)。Input数据的第一行是一个T,表示有...
集训进行了将近2个礼拜,这段时间以恢复性训练为主,我一直在密切关注大家的训练情况,目前为止,对大家的表现相当满意,首先是绝大部分队员的训练积极性很高,其次,都很遵守集训纪律,...
People are different. Some secretly read magazines full of interesting girls' pictures,...
Given a positive integer N, you should output the most right digit of N^N.InputThe inpu...
在一个国家仅有1分,2分,3分硬币,将钱N兑换成硬币有很多种兑法。请你编程序计算出共有多少种兑法。 Input每行只有一个正整数N,N小于32768。 Output对应每个输...
Problem DescriptionAn inch worm is at the bottom of a well n inches deep. It has enough...
Problem Description一个整数,只知道前几位,不知道末二位,被另一个整数除尽了,那么该数的末二位该是什么呢? Input输入数据有若干组,每组数据包含二个整数...
Description 有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在两堆中同...
给定一个日期,输出这个日期是该年的第几天。Input输入数据有多组,每组占一行,数据格式为YYYY/MM/DD组成,具体参见sample input ,另外,可以向你确保所有...
统计每个元音字母在字符串中出现的次数。Input输入数据首先包括一个整数n,表示测试实例的个数,然后是n行长度不超过100的字符串。Output对于每个测试实例输出5行,格式...
Someday, Drazil wanted to go on date with Varda. Drazil and Varda live on Cartesian pla...
给定三条边,请你判断一下能不能组成一个三角形。Input输入数据第一行包含一个数M,接下有M行,每行一个实例,包含三个正数A,B,C。其中A,B,C <1000;Output...
One hot summer day Pete and his friend Billy decided to buy a watermelon. They chose th...
先把元音变成‘0’,以便去除,同时把大写改为小写。用另一个字符数组记录有效元素,逐个输出的同时在前面加‘.’。 include <iostream> using namesp...
同a+b。 #include #include using namespace std; int main() { int a, b; while (cin >> a >> ...