a518. 12468 - Zapping 5/16/2025

่งฃๆณ•ไธ€

โœ… ๅฎŒๆ•ดไปฃ็ขผ

่ฉ•ๅˆ†็ตๆžœ(ๅƒ่€ƒ) ๏ผš 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;
}