时间戳

用了一个“假方法“

#include<iostream>
using namespace std;
int main()
{
long long n,y,r,s;
cin>>s;
r=s/(60*60*24);
y=r/30;
n=y/12;
n=n+1970;
y=y%12+1;
r=r%30+1;
cout<<n<<' '<<y<<' '<<r<<endl;
return 0;
}


posted @ 2017-07-27 08:52  方尊  阅读(101)  评论(0)    收藏  举报