文章
1
粉丝
58
获赞
0
访问
340
```超简洁代码
#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
const long long s=60*60*24;
int main(){
long long n;
int month,day,hour,minute,second;
int a[12]={31,28,31,30,31,30,31,31,30,31,30,31};
while(scanf("%lld",&n)!=EOF){
day=n/s;
int m=0;
int i=0;
while(day-a[i]>=0){
day-=a[i];
i++;
}day++;
month=i+1;
hour=n%s/(3600);
minute=n%s%3600/60;
second=n%s%3600%60;
&n...
登录后发布评论
暂无评论,来抢沙发