还行
#include<stdio.h> int main() { int N,a,m,d; scanf("%d",&N); a=N/365; N=N%365; m=N/30; N=N%30; d=N; printf("%d ano(s)\n",a); printf("%d mes(es)\n",m); printf("%d dia(s)\n",d); return 0; }