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.
このコードを 100% 正しく動作させるのに問題があります。ユーザーが最初の数値としてより大きな数値を入力すると、プログラムは正しい最大公約数を与えます。
ただし、小さい方の数値を最初に入力すると、小さい方の数値が GCD として返されます。
私は何時間も無駄にこれを理解しようとしてきました。誰か助けてください!!