fork download
  1. y=1970,m=1,d=1;
  2.  
  3. main(n){
  4. for(scanf("%d",&n);n--;)(d=++d%(m^2?m^4&&m^6&&m^9&&m^11?32:31:(y%4|!(y%100))&y%400?29:30))||(++d,m=++m%13)||++m*++y;
  5. printf("%d/%d/%d\n",y,m,d);
  6. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty