标签:div lan php href 测试 names i++ lse 输入数据
http://acm.hdu.edu.cn/showproblem.php?pid=2007
#include <bits/stdc++.h>
using namespace std;
int main()
{
int x,y;
while(cin>>x>>y)
{
if(x>=y)
swap(x,y);
int n=0,m=0;
for(int i=x; i<=y; i++)
{
if(i%2==0)
m+=i*i;
else
n+=i*i*i;
}
cout<<m<<" "<<n<<endl;
}
return 0;
}
标签:div lan php href 测试 names i++ lse 输入数据
原文地址:https://www.cnblogs.com/zlrrrr/p/9207102.html