0
已解决
张云瀚
初级天翼
初级天翼
题目链接: 酷町堂:1072
#include<iostream>
#include<iomanip>
using namespace std;
int main(){
int a;
cin>>a;
if(a%2==0&&a%3==0&&a%5==0){
cout<<"2 3 5 n=1";
}
if(a%2==0&&a%3==0&&a%5!=0){
cout<<"2 3 n=2";
}else{
if(a%2==0&&a%5==0&&a%3!=0){
cout<<"2 5 n=2";
}else{
if(a%5==0&&a%3==0&&a%2!=0){
cout<<"3 5 n=2";
}else if(!(a%2==0&&a%3==0&&a%5==0)){
cout<<"Sorry";
}
}
}
return 0;
}