小凯的疑惑

题面

这题.......我都难以想象noip还有O(1)的题目qwq

(我才不会说公式我嫖的)

#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;

long long a,b;

int main()
{
	scanf("%lld%lld",&a,&b);
	printf("%lld",a*b-a-b);
	return 0;
}

  

posted @ 2019-08-15 15:41  [jackeylove]  阅读(63)  评论(0编辑  收藏  举报