【NOIP2017提高组 day1】小凯的疑惑

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_41709770/article/details/82828551

题目

在这里插入图片描述


题解

–emmm怎么说呢,毕竟是第一题,当然是打表咯哈哈哈哈哈
算出来答案是(a*b)-(a+b)
虽然不会证
能AC就行不是吗


代码

#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<algorithm>
using namespace std;
const int MAXN=1;

long long a,b;

int main(){
//	freopen("math.in","r",stdin);
//	freopen("math.out","w",stdout);
	cin>>a>>b;
	cout<<a*b-(a+b);
	return 0;
} 

猜你喜欢

转载自blog.csdn.net/qq_41709770/article/details/82828551