#include<iostream>#include<cmath>using namespace std;int main(){int a, b;while(cin>>a>>b){int c=abs(a-b);cout<<c<< endl;}}
#include#includeusing namespace std;int main(){int a, b;while(cin>>a>>b){int c=abs(a-b);cout<<c<< endl;}}
在a>b的狀況下,要一直按到尾端,再重頭開始按,所以是100-a+b