Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
(A*B)>0A&Bが大きいと状態が確認できません。(A,B)との間の嘘についてこの条件を確認する-2147483648方法2147483647
(A*B)>0
(A,B)
-2147483648
2147483647
ソリューションが最適である場合
結果をオペランドの 1 つで単純に除算し (それがゼロでない限り)、除算の結果が他のオペランドであるかどうかを確認します。