virtual hust 2013.6.23 数学杂题基础题目 P - Big Chocolate

题目:Big Chocolate

思路:很久之前写过,用递归一次一次的拆分的,写复杂了,直接输出m*n-1即可,证明自己想

 

#include <cstdio>
#include <algorithm>
#include <cstring>
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
    long long m,n;
    while(scanf("%lld%lld",&m,&n)!=EOF)
    {
        cout<<m*n-1<<endl;
    }
    return 0;
}
View Code

 

posted @ 2013-06-23 10:07  over_flow  阅读(120)  评论(0编辑  收藏  举报