---
# System prepended metadata

title: Hashmat the brave warrior(UVA10055)
tags: [CPE一顆星必考題]

---

# Hashmat the brave warrior(UVA10055)
## [程式繳交區](https://hackmd.io/@Renektonn/r1kOiq5Dyl/edit)
## 題目
[點我](https://onlinejudge.org/external/100/10055.pdf)

## 解題系統 
[UVA](https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=996)
[ZJ](https://zerojudge.tw/ShowProblem?problemid=a012)

## 演算法
```
1.輸入兩數（long long int）a b，若沒有東西可以輸入，則結束
2.輸出abs(a - b)
3.回到1
```

## 程式碼
```cpp=
#include <bits/stdc++.h>
#define LL long long int

using namespace std;

int main() {
    LL a , b;
    while(cin >> a >> b){
        cout << abs(a - b) << endl;
    }
    return 0;
}

```

