把365写成360 棍
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
int a,b,c;
int n=0;
scanf("%d",&n);
if(n<30){
c=n;
}
else if(n>=30&&n<365){
b=n/30;
c=n%30;
}
else{
a=n/365;
b=(n%365)/30;
c=(n%365)%30;
}
printf("%d ano(s)\n",a);
printf("%d mes(es)\n",b);
printf("%d dia(s)\n",c);
return 0;
}