首页 > Duration
头像 ctgu-zhangjiahe
发表于 2020-07-13 17:06:58
注意,只能在Linux环境运行,因为Windows 没有strptime()函数 #include<bits/stdc++.h> long char2time(char* str) { struct tm tm; strptime(str, "%H:%M:%S", &am 展开全文
头像 _空白
发表于 2020-07-14 15:36:59
题目描述:Given two moments on the same day in the form of HH:MM:SS, print the number of seconds between the two moments.输入描述:Input two lines each contains 展开全文
头像 cheeserish
发表于 2020-07-14 17:49:24
把时间都转化成秒即可; #include<bits/stdc++.h> using namespace std; string a,b; int main() { cin>>a>>b; int cnt=0,sum=0; int k=((b[ 展开全文
头像 11D_Beyonder
发表于 2020-08-11 17:27:39
题目描述 Given two moments on the same day in the form of HH:MM:SS, print the number of seconds between the two moments. 输入描述 Input two lines each conta 展开全文
头像 回归梦想
发表于 2020-07-24 11:16:04
Duration(2020多校第二场D)@[toc]首先,非常感谢出题人出这个题,避免了我全wa的尴尬 题意 求两个时间相差多少秒,两个时间为同一天 题解 全部转化成秒,然后求差 代码 #include<bits/stdc++.h> using namespace std; typede 展开全文
头像 zjnu_tjq
发表于 2020-07-17 22:02:34
链接:https://ac.nowcoder.com/acm/contest/5667/D来源:牛客网 题目描述: Given two moments on the same day in the form of HH:MM:SS, print the number of seconds betwe 展开全文