首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
ryuki
2026年2月10日 16:13
Aconly时间戳 题解:日期题目综合
P1545
回复 0
|
赞 11
|
浏览 189
#include <iostream> #include <cstdio> using namespace std; int month_day[12] = {31,28,31,30,31,30,31,31,30,31,30,31}; bool is_leapyear(int year) {//判断闰年 return (year%4==0 && year%100!=0) || year%400 == 0; } int get_day(int year, int month) {//获取每个月的天数 ...
曾不会
2026年2月4日 11:18
Aconly时间戳 题解:史山
P1545
回复 0
|
赞 2
|
浏览 176
#include<stdio.h> int a[13]={0,31,29,31,30,31,30,31,31,30,31,30,31}; int main() { long long int n; while(scanf("%lld",&n)!=EOF) { int miao3=n%60; int miao2=n/60%60; &n...
无名1
2025年9月2日 16:11
Aconly时间戳 题解:C++
P1545
回复 0
|
赞 4
|
浏览 892
#include<bits/stdc++.h> using namespace std; struct data{ int y; int m; int d; int shi; int fen; int miao; }; int main(){ long n; data a; int num[12]={31,28,31,30,31,30,31,31,30,31,30,31}; while(cin>>n){ a.y=2009; a.m=1; a.d=1; a.shi=0; ...
damowanghwj
2024年3月22日 15:37
Aconly时间戳 题解:c++
P1545
回复 0
|
赞 6
|
浏览 1.2k
#include<bits/stdc++.h> using namespace std; int mday[13] = {0,31,28,31,30,31,30,31,31,30,31,30,31}; int main(){ int n; while(scanf("%d",&n) != EOF){ int d_sec = 3600 * 24; int days = n / d_sec; int num = 0; int b_month = 1;//...
yjh020216
2024年3月16日 17:52
Aconly时间戳 题解:
P1545
回复 0
|
赞 1
|
浏览 782
```超简洁代码 #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,...
光明守护神
2024年3月10日 16:20
Aconly时间戳 题解:C++
P1545
回复 0
|
赞 1
|
浏览 1.1k
#include <iomanip> #include <iostream> #include<string> using namespace std; int m[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 }; void print(int x[5]) { string s[5]; for (int i = 0; i < 5; i++) { if (x[i] < 10) { s[i] = "0"; } s[i] += to_s...
1935569240
2024年3月10日 13:50
Aconly时间戳 题解:
P1545
回复 0
|
赞 0
|
浏览 1.2k
#include<iostream> #include<algorithm> #include<string> using namespace std; int main() { int cnt; int nums[13] = { 0,30,28,31,30,31,30,31,31,30,31,30,31 }; if (2009 % 4 == 0 && 2009 % 100 != 0 || 2009 % 400 == 0) { &n...
1935569240
2024年3月10日 11:34
Aconly时间戳 题解:求指点,一直0%
P1545
回复 1
|
赞 0
|
浏览 1.4k
#include<iostream> #include<algorithm> #include<string> using namespace std; int main() { int cnt; int nums[13] = { 0,30,28,31,30,31,30,31,31,30,31,30,31 }; if (2009 % 4 == 0 && 2009 % 100 != 0 || 2009 % ...
我要上岸!
2024年3月7日 16:12
Aconly时间戳 题解:
P1545
回复 0
|
赞 1
|
浏览 1.7k
#include<bits/stdc++.h> using namespace std; int main() { int days[13] = { 0,31,28,31,30,31,30,31,31,30,31,30,31 }; //一个月的天数,为方便从1开始 int n; while (cin >> n) { int s...
aksunlight
2020年4月25日 14:11
先统计总天数并计算时间,再把总天数转换为哪月那日(基于n的输入范围这里
P1545
回复 0
|
赞 9
|
浏览 9.1k
#include"stdio.h" int a[13] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int main(void){ int n; while(scanf("%d", &n) != EOF){ int month = 1, day = 1, s = 0, f = 0, m = 0;  ...
1
2
题目
Aconly时间戳
题解数量
12
发布题解
在线答疑
热门题解
1
Aconly时间戳 题解:日期题目综合
2
先统计总天数并计算时间,再把总天数转换为哪月那日(基于n的输入范围这里直接认定是2009年)
3
Aconly时间戳 题解:c++
4
Aconly时间戳 题解:C++
5
Aconly时间戳 题解:史山
6
Aconly时间戳 题解:
7
Aconly时间戳 题解:
8
Aconly时间戳 题解:C++
9
1545时间戳
10
Java代码