跳到正文

题解

题解:P13678 [GCPC 2023] Mischievous Math

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

文章信息

发布
2025年8月9日
收录
2025年12月12日
更新
2026年11月14日
篇幅
约 1 分钟
获赞
1
题目
P13678

版本

  1. v1当前

题目大意

题目传送门

题目分析

我们可以证明,当 a=1,b=2,c=3a = 1,b = 2,c = 3 时,完全无法凑出 ≥10\ge 10 的数字。当 d≤10d \le 10 时,我们让 a=57,b=91,c=11a = 57,b = 91,c = 11,一定无法凑出 ≤10\le 10 的数。

代码实现

C++
#include <bits/stdc++.h>
using namespace std;
int d;
int main() {
	cin >> d;
	if (d >= 10)cout << "1 2 3";
	else cout << "57 91 11";
	return 0;
}
原文