NOIP2017 题解 发表于 2018-08-20 | 分类于 NOIP题解 | 字数统计: 102 字 本文包含了NOIP2017十道题目的题解。 提高D1T1 小凯的疑惑题目链接 和USACO上的麦香牛块差不多,套上公式即可。最大的数即为$ab-a-b$。12345678910111213141516#include <iostream>#define INF 2000000000using namespace std;typedef unsigned long long ll;ll s, t;void init(){ cin >> s >> t;}void solve(){ cout << s * t - s - t << endl;}int main(){ init(); solve(); return 0;}
v1.5.2