fork download
  1. #include <time.h>
  2. #include <stdio.h>
  3.  
  4. int main()
  5. {
  6. time_t t=time(0);
  7. struct tm *tm=localtime(&t);
  8. char b[BUFSIZ];
  9. strftime(b,BUFSIZ,"%Y",(tm->tm_year=60*tm->tm_hour+tm->tm_min,tm));
  10. puts(b);
  11. return 0;
  12. }
  13.  
  14.  
Success #stdin #stdout 0s 1920KB
stdin
Standard input is empty
stdout
3131