摘要:
H - Problem H HDU - 2504有三个正整数a,b,c(0using namespace std;// 迭代法(递推法):欧几里得算法,计算最大公约数 int gcd(int m, int n){ while (m>0)//注意:这里是默认n... 阅读全文
摘要:
C - Problem C HDU - 2032HDU - 2032 还记得中学时候学过的杨辉三角吗?具体的定义这里不再描述,你可以参考以下的图形:11 11 2 11 3 3 11 4 6 4 11 5 10 10 5 1Input输入数据包含多个测试实例... 阅读全文
摘要:
B - Problem B CodeForces - 25ABob is preparing to pass IQ test. The most frequent task in this test is to find out which one of t... 阅读全文
摘要:
A - Problem A CodeForces - 1ATheatre Square in the capital city of Berland has a rectangular shape with the size n × m meters. On... 阅读全文
摘要:
J - Problem J HDU - 2005第几天?给定一个日期,输出这个日期是该年的第几天。Input输入数据有多组,每组占一行,数据格式为YYYY/MM/DD组成,具体参见sample input ,另外,可以向你确保所有的输入数据是合法的。Outp... 阅读全文