UVA 10970(p79)----Big Chocolate

来源:互联网 发布:安卓手机数据导出 编辑:程序博客网 时间:2024/05/21 06:17
#include<bits/stdc++.h>using namespace std;int main(){    int n,m;    while(scanf("%d%d",&n,&m)!=EOF)    {        printf("%d\n",n*m-1);    }    return 0;}

题目地址:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1911

题解:答案为n*m-1

0 0
原创粉丝点击