题解:P13678 [GCPC 2023] Mischievous Math
zxw1234567 · · 题解
思路
我们可以对
于是,我们可以再次分类讨论。当
代码
#include <bits/stdc++.h>
using namespace std;
int main() {
int d;
cin >> d;
if (d >= 10) cout << "1 2 3";
else if(d!=3) cout << "19 31 47";
else cout<<"20 32 48";
return 0;
}