解法一
✅ 完整代碼
評分結果(參考) : AC (2ms, 328KB)
#include <bits/stdc++.h>
using namespace std;
int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    
    int a, b;
    while(cin >> a >> b){
        if(a==-1 && b==-1) break;
        cout << min(abs(a-b), 100-abs(a-b)) << "\n";
    }
    return 0;
}