AC

小狐狸的X  •  2年前


include

include

using namespace std; int main(void){

//freopen("1114.in","r",stdin);
//freopen("1114.out","w",stdout);
int n;
scanf("%d",&n);
if(n%3==0&&n%7==0){
	printf("%d",n/7);
}else{
	printf("-1");
}
return 0;

}


评论:

请先登录,才能进行评论