题目大意
题目分析
我们可以证明,当 时,完全无法凑出 的数字。当 时,我们让 ,一定无法凑出 的数。
代码实现
#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;
}我们可以证明,当 时,完全无法凑出 的数字。当 时,我们让 ,一定无法凑出 的数。
#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;
}