2.2.3
来源:互联网 发布:sql2000数据库快速备份 编辑:程序博客网 时间:2024/06/05 07:40
#include <iostream>
using namespace std;
int max (int x,int y)
{
if(x>y)
{
return x;
}
else
return y;
}
int main()
{
int a,b;
while(cin>>a>>b)
{
int c;
c=a+b-max(a,b);
int i;
int m=0,n=0;
for(i=c;i<=max(a,b);i++)
{
if(i%2==0)
{
m+=i*i;
}
else
{
n+=i*i*i;
}
}
cout<<m<<' '<<n<<endl;
}
return 0;
}
0 0
- 2.2-3 & 2.2-4
- 2.2-3
- 2.2-3
- 2.2-3
- 2.2.3
- 2.2.3
- 2.2.3
- 2.2.3 快速排序
- 2.2.3 Types接口
- 2.2.3 选择软件包
- hdu1997(Steps 2.2.3)
- USCAO 2.2.3
- 算法导论 2.2-3
- cocos2dxHellowoed 发现 2.2.3
- 2.2.3Web
- 2.2.3 Partition List
- 2.2.3 Partition List
- 2.2.3 数据类型
- Hibernate 一对多单向关联
- C#从sqlserver中获取数据的方法
- 怎样用JAVA打开一个已经写好的TXT文件? 是打开,不是读取啊!!!
- 明日操盘机器人选择题一(2017-02-02)
- Backtracking: 17. Letter Combinations of a Phone Number
- 2.2.3
- 明日操盘机器人选择题二(2017-02-02)
- OpenCV实践(5)- 基本绘图
- 明日操盘机器人选择题三(2017-02-02)
- 明日操盘机器人选择题四(2017-02-02)
- 移植7- uboot之sd卡做文文件系统启动linux
- PLSQL Trigger FOR EACH ROW
- [leetcode]--104. Maximum Depth of Binary Tree
- [leetcode]--389. Find the Difference