close

https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=996

#include <iostream>

#include <cstdlib>

using namespace std;

int main()

{

    long long int Hashmat, opponent;

    while(cin>>Hashmat>>opponent)

    {

        cout<<abs(Hashmat-opponent)<<endl;

    }

}

 

 

※查詢所有題目及解答如下※

https://jennaweng0621.pixnet.net/blog/post/403629785-CPE%E9%A1%8C%E7%9B%AE%E7%9B%AE%E9%8C%84%E5%8F%8A%E8%A7%A3%E7%AD%94

※查詢其他CPE題目如下※

http://jennaweng0621.pixnet.net/blog/category/6372301

arrow
arrow
    全站熱搜

    楓綺 發表在 痞客邦 留言(0) 人氣()