From 63352a4d2650694da22ecd04aeb04c80096a4ec9 Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Mon, 5 Dec 2016 21:48:03 +0800 Subject: [PATCH] Create 1901.cpp --- QUSTOJ/1901.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 QUSTOJ/1901.cpp diff --git a/QUSTOJ/1901.cpp b/QUSTOJ/1901.cpp new file mode 100644 index 0000000..489feed --- /dev/null +++ b/QUSTOJ/1901.cpp @@ -0,0 +1,22 @@ +#include + +using namespace std; + +int main() +{ + int a,b,c; + char x; + int n; + cin>>n; + while(n--) + { + cin>>a>>x>>b>>x>>c; + cout<=60) {b++;c-=60;} + if(b>=60) {a++;b-=60;} + if(a>=24) {a-=24;} + cout<