Toggle navigation
Courses
Questions
Tags
Users
AC 20161201 第二次期中考 第二題
0
like
0
dislike
4.3k
views
時鐘上有時針有分針,分針每一分鐘跳一次,分針每跳一次時針也會前進相對應的角度。請設計一程式,由使用者輸入一個時間,程式會計算出時針與分針間的夾角後輸出。
輸入說明:輸入包含兩個正整數,兩個數之間由一個空白隔開,第一個數字代表時,第二個數字代表分。
輸出說明:請輸出時針與分針間較小的那個夾角。
輸入範例:
12 31
輸出範例
170.5
[Exercise]
Coding (C)
-
asked
Dec 1, 2016
in
2016-1 程式設計(一)AC
by
Shun-Po
(
18k
points)
ID: 18067 -
Available when:
2016-12-01 18:30:00
-
Due to:
2016-12-01 21:00:00
reshown
Dec 1, 2016
by
Shun-Po
|
4.3k
views
comment
Please
log in
or
register
to add a comment.
62
Answers
0
like
0
dislike
Hidden content!#include *** * * * *
#include * * ** * * *
int main()
{
* * * * * * ** * a=0,b=0,r=0;
*** * *** ** * * * * * ** * * *** * * * **** ** * ** * ** *
*** * ** * * * ** * ** * * ** * *
* ** * * ** *** ** * ** * * **** * * *
* * ** *** * * * * * * ** * **** ***
** * ** ****** ** ** ** 0;
}
answered
Dec 1, 2016
by
林宗鴻
(
-72
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!* ** ** * *** * * *
int main(void)
{
** ** *** * * * * * ** * * hr,min;
* ** * ** * ** * * * * ** * ** * ** * * ** *
* * * ** = 30;
** * * ** * * * * * = 6;
* * * ** * ** * * * * * *
* *** * ** * * ** * * *** * * * 0;
}
answered
Dec 1, 2016
by
Ren
(
-320
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main ()
{
float Q ,T ,K,L,A,B,C,D ;
int M ,H ;
scanf("%d %d", &H,&M);
if (H<=11)
{
* * * * ** * * * * * ** * * * ** ** * * * * *
{
* **** ** * * ** * * * * * * * * **** * * * ** ** * * * * == (-1)*(M*6-30*H-M*0.5);
**** * * * * * * ** ** * * *** * * * ** ** **** ****** ** * ** * * * * * * * * * *
* * ******* * * *** * * * ** * * * * * * *** ** * * **** * * * * * ***** * *