• [I] Nth Day is Which Day

  • 时间限制: 1000 ms 内存限制: 65535 K
  • 问题描述
  • The first day is 1 year 1 month 1 day, so the Nth day is which day?
  • 输入
  • Input until EOF.
    Input a positive integer N means the Nth day(0<N<365000).
  • 输出
  • You should output the date of that day(year month day).
  • 样例输入
  • 1
    2
    32
    
  • 样例输出
  • 1 1 1
    1 1 2
    1 2 1
    
  • 提示
  • 来源
  • hungar
  • 操作

显示春菜