Toggle navigation
Courses
Questions
Tags
Users
AC 20170105 期末 第二題
0
like
0
dislike
1.8k
views
讓使用者輸入三個時間,依照時間由晚到早輸出。
example input:
12 30 23 40 12 34
22 30 20 31 17 12
example output:
23:40 12:34 12:30
22:30 20:31 17:12
[Exercise]
Coding (C)
-
asked
Jan 5, 2017
in
2016-1 程式設計(一)AC
by
Shun-Po
(
18k
points)
ID: 20978 -
Available when:
Unlimited
-
Due to:
Unlimited
reshown
Jan 5, 2017
by
Shun-Po
|
1.8k
views
comment
Please
log in
or
register
to add a comment.
39
Answers
0
like
0
dislike
Hidden content!#include <stdio.h>
#include <string.h>
int main()
{ int h1,m1,h2,m2,h3,m3;
* * ** * ** ** ** * * ******** * %d%d *** * ** * ** ** ** * * **** *** * ** *
* * * * ** * ** *** a,b,c,d,e,f;
* * * * ** * ** * ** *
** ** * * * ** * *
* * * ** **** * * ** ** *** * * ** * * * ** ** * * * {a=h1;b=h2;d=m1;e=m2;}
* * * * * * ** * * ** * * * * * * * **** * * ** {a=h2;b=h1;d=m2;e=m1;}