摘要:
星期几?时间限制:500 ms | 内存限制:65535 KB难度:2描述 Acmer 小鱼儿 埋头ku算一道题 条件:已知给定 一日期 告诉你这一天是 星期 n,让你计算在未来的m的p次方的天数后是星期几?他很苦恼,聪明的你能帮助他吗?输入有多组测试数据,每组测试数据以包含三个整数n,m,p(n10)输出输出过了这么多天后是星期几样例输入3 2 205 3 100样例输出72 1 #include 2 3 int f(int a,int b) 4 { 5 long long int t; 6 if(b==0) 7 return 1; 8 if(b==1) ... 阅读全文
posted @ 2013-12-07 20:48
龙腾四海365
阅读(192)
评论(0)
推荐(0)
摘要:
The Triangle时间限制:1000 ms | 内存限制:65535 KB难度:4描述7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 (Figure 1) Figure 1 shows a number triangle. Write a program that calculates the highest sum of numbers passed on a route that starts at the top and ends somewhere on the base. Each step can go either diagonally down to the 阅读全文
posted @ 2013-12-07 17:46
龙腾四海365
阅读(148)
评论(0)
推荐(0)

浙公网安备 33010602011771号