あなたは電気屋で働いています。
あなたの電気屋にテレビを買いに来たお客さんに「何インチのテレビを買いたいのか」と質問したところ、対角線の情報しかわからないと言われてしまいました。
しかし、テレビのインチを知るには、幅と高さの情報が必要です。
すべてのテレビの縦横比が 9 : 16 であると仮定した上で、画面の対角線の長さを入れると画面の幅と高さの値をそれぞれ返す関数を作成してみましょう。
- (英語版) Problem 43008. What's size of TV? https://www.mathworks.com/matlabcentral/cody/problems/43008
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers321
Suggested Problems
-
How to find the position of an element in a vector without using the find function
2814 Solvers
-
500 Solvers
-
Numbers with prime factors 2, 3 and 5.
682 Solvers
-
Matrix with different incremental runs
580 Solvers
-
Calculate Amount of Cake Frosting
29169 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!
テストケースの正解判定にabsが必要そうです