跳到正文

个人记录

M - Mischievous Math

ytck约 1 分钟
原文
文章信息与版本

文章信息

发布
2023年8月4日
收录
2025年12月12日
更新
2026年11月18日
篇幅
约 1 分钟

版本

  1. v1当前

让A,B,C永远得不到D

我们要让a,b,c一定算不出d

易知当d>=10时我们a=1,b=2,c=3最大是9,一定可以满足

当d<10是我们a=51,b=79,c=100最小值是20,一定可以满足

(这种三元组有很多,随便找两组即可)

C++
#include"bits/stdc++.h"
using namespace std;
#define IOS ios::sync_with_stdio(false); cin.tie(0); cout.tie(0)
#define endl '\n'


signed main()
{
	int n;
	cin >> n;
	if (n >= 10) cout << "1 2 3" << endl;
	else cout << "51 79 100" << endl;
}
原文