Replies: 2 comments
-
|
分数を含む比較は分母を払って、整数の計算のみで比較する。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
浮動小数点数の誤差を気にせず書いても通る(ので、両辺をn倍して整数で……という方法を知っていることは要求されていない?) // JavaScript, TypeScript
console.log(A > B * (2 / 3) ? "Yes" : "No");AC確認済み https://atcoder.jp/contests/abc465/submissions/77457322 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
問題の感想や気づきを投稿・共有するスペースです
Beta Was this translation helpful? Give feedback.
All reactions