Toggle navigation
Courses
Questions
Tags
Users
第一次期中考_Question4
9
like
0
dislike
394
views
在座標平面上給予一個矩形的對角座標就可以定義一個矩形。給你兩個矩形,請寫一個程式判斷這兩個矩形是否有重疊。
重疊的定義:兩者相交之面積大於0。(也就是如果只有點相交並不算重疊)
輸入說明:
會連續輸入八個浮點數,前四個代表第一個矩形的對角座標,後四個代表第二個矩形的對角座標。四個浮點數之間會用空格隔開。
輸出說明:
如果兩個矩形有重疊,請在銀幕上輸出”yes”,反之則輸出”no”。
輸入範例:
0.0 0.0 2.2 2.2 1.1 1.1 5.5 5.5
輸出範例:
yes
midterm
[Exam]
asked
Oct 27, 2017
in
2017-1 程式設計(一)AD
by
楊修俊
(
30k
points)
ID: 29385 -
Available when:
Unlimited
-
Due to:
2017-10-27 21:30
|
394
views
comment
Please
log in
or
register
to add a comment.
6
Answers
0
like
0
dislike
Hidden content! ** * * * ** * ** * * * ** * * * * ** * ** * * ***
20/100
answered
Oct 27, 2017
by
eddiepon
(
202
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content! ** * * * * * * * * * * ** * ** * * * * * * * * * **
5/100
answered
Oct 27, 2017
by
zxcv1025
(
196
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content! * * * ** * ** * * * * * * * * *** * * **** * *
40/100
answered
Oct 27, 2017
by
張峰瑜
(
228
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content! **** * ** * * * * *** ** ** * ** ** ** * * * ** **** *
100/100
answered
Oct 27, 2017
by
s410535044
(
114
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!* * * ** * *** * * ** * * * * * * * * *** * * *
40/100
answered
Oct 27, 2017
by
黃建淳
(
209
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!**** * * * * * **** ** ** * *** ** **** * * *****
100/100
answered
Oct 27, 2017
by
0TXT
(
215
points)
ask related question
comment
Please
log in
or
register
to add a comment.
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English
中文
Tiếng Việt
IP:172.70.179.67©2016-2024
Related questions
3
like
0
dislike
12
answers
第二次期中考補考-第一題
[Exam]
asked
Dec 23, 2017
in
2017-1 程式設計(一)AD
by
楊修俊
(
30k
points)
ID: 38938 -
Available when:
2017-12-23 09:00
-
Due to:
2017-12-23 12:10
|
1.9k
views
midterm
2
like
0
dislike
0
answers
第一次期中考補考_Q4及其參考答案
[Resource]
asked
Nov 9, 2017
in
2017-1 程式設計(一)AD
by
楊修俊
(
30k
points)
ID: 31098 -
Available when:
Unlimited
-
Due to:
Unlimited
|
17
views
midterm
2
like
0
dislike
0
answers
第一次期中考補考_Q3及其參考答案
[Resource]
asked
Nov 9, 2017
in
2017-1 程式設計(一)AD
by
楊修俊
(
30k
points)
ID: 31097 -
Available when:
Unlimited
-
Due to:
Unlimited
|
14
views
midterm
2
like
0
dislike
0
answers
第一次期中考補考_Q2及其參考答案
[Resource]
asked
Nov 9, 2017
in
2017-1 程式設計(一)AD
by
楊修俊
(
30k
points)
ID: 31096 -
Available when:
Unlimited
-
Due to:
Unlimited
|
17
views
midterm
12,783
questions
183,443
answers
172,219
comments
4,824
users