#include<iostream> using namespace std; int main(){ int firstNumber = 0; int EndNumber = 0; while(cin>>firstNumber>>EndNumber){ int temp = 0; if(firstNumber > EndNumber){ temp=EndNumber; EndNumber=firstNumber; firstNumber=temp; } cout<<EndNumber-firstNumber; } return 0; }題目網址:http://bit.ly/2nQ1nS2
沒有留言:
張貼留言