Problem 44411. テレビのサイズを求めてみよう
あなたは電気屋で働いています。
あなたの電気屋にテレビを買いに来たお客さんに「何インチのテレビを買いたいのか」と質問したところ、対角線の情報しかわからないと言われてしまいました。
しかし、テレビのインチを知るには、幅と高さの情報が必要です。
すべてのテレビの縦横比が 9 : 16 であると仮定した上で、画面の対角線の長さを入れると画面の幅と高さの値をそれぞれ返す関数を作成してみましょう。
- (英語版) Problem 43008. What's size of TV? https://www.mathworks.com/matlabcentral/cody/problems/43008
Solution Stats
Problem Comments
-
1 Comment
Yuichi Tadokoro
on 3 Aug 2018
テストケースの正解判定にabsが必要そうです
Solution Comments
Show commentsProblem Recent Solvers316
Suggested Problems
-
Project Euler: Problem 3, Largest prime factor
1785 Solvers
-
Longest run of consecutive numbers
6432 Solvers
-
1608 Solvers
-
Return fibonacci sequence do not use loop and condition
850 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
2134 Solvers
More from this Author12
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!