[ZJ]d294: 算算算....Easy
題目:
http://zerojudge.tw/ShowProblem?problemid=d294
=====================================================
#include<bits/stdc++.h>
using namespace std;
typedef long long int LL;
int main()
{
LL n,m;
while(scanf("%lld%lld",&n,&m)!=EOF)
{
printf("%lld\n",((n*(n+1))*(m*(m+1)))/4);
}
return 0;
}
http://zerojudge.tw/ShowProblem?problemid=d294
=====================================================
#include<bits/stdc++.h>
using namespace std;
typedef long long int LL;
int main()
{
LL n,m;
while(scanf("%lld%lld",&n,&m)!=EOF)
{
printf("%lld\n",((n*(n+1))*(m*(m+1)))/4);
}
return 0;
}
留言
張貼留言