正解
我们对 进行分类讨论:当 时,我们令 ,一定满足条件,因为凑出来的数最大是 。
当 时,我们令 ,同理也一定满足条件,凑不出 满足 。
代码
#include <bits/stdc++.h>
using namespace std;
int d;
int main(void) {
cin >> d;
if (d >= 10)
cout << "1 2 3";
else
cout << "31 53 74";
return 0;
}