https://coding-prep.com/2023/02/08/zj-a024-%e6%9c%80%e5%a4%a7%e5%85%ac%e5%9b%a0%e6%95%b8gcd/
裡面的答案輸入變成 while(cin >> a >> b) 即可