Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- = 流程 =
- 比較次數 input1 input2 行動
- 0 5 5 印出,兩邊都讀下一筆
- 1 10 6 右邊小,右邊讀下一筆
- 2 10 7 右邊小,右邊讀下一筆
- 3 10 8 右邊小,右邊讀下一筆
- 4 10 9 右邊小,右邊讀下一筆
- 5 10 10 印出,兩邊都讀下一筆
- 6 15 11 右邊小,右邊讀下一筆
- 7 15 12 右邊小,右邊讀下一筆
- 8 15 13 右邊小,右邊讀下一筆
- 9 15 14 右邊小,右邊讀下一筆
- 10 15 15 印出,兩邊都讀下一筆
- 11 已達檔尾,結束
- = 兩檔案內容 =
- input1.txt:
- 5
- 10
- 15
- 20
- 25
- 30
- 35
- 40
- 46
- 50
- input2.txt:
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 15
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement