C-小红的双好数(easy)_牛客周赛 Round 57 (nowcoder.com)
思路:
任何一个数n可以表示为n进制,且值为1
特判1 2 即可
代码:
#include<bits/stdc++.h>
#define int long long
using namespace std;
#define IOS ios::sync_with_stdio(0),cin.tie(0),cout.tie(0)
signed main() {
IOS;
int n;
cin >> n;
if(n == 2) cout << "NO";
else {
cout << "YES" << endl;
if(n == 1) cout << 2 <<' ' << 3;
else {
cout << 2 <<' ' << n;
}
}
cout << endl;
return 0;
}