The following program is my ACcepted code for UVA-11462 .
It's a for everybody to learn and discuss.
If there is any mistake or comment, please let me know. :D
此乃UVA 11462 的AC code!
點這裡看題目 Click here to see this Problem!
此題為簡單的sort ,我使用了 algorithm library 中已經有的sort
因為0<n<=2000000 比較大,所以我把陣列設為全域變數 (main 外面)
This problem use sort. I use the "sort" in algorithm library.
Because 0<n<=2000000, I set the array as global variable. (outside the main function)
It's a for everybody to learn and discuss.
If there is any mistake or comment, please let me know. :D
此乃UVA 11462 的AC code!
歡迎一同討論學習,如有錯誤與任何建議請留言 : )
點這裡看題目 Click here to see this Problem!
此題為簡單的sort ,我使用了 algorithm library 中已經有的sort
因為0<n<=2000000 比較大,所以我把陣列設為全域變數 (main 外面)
This problem use sort. I use the "sort" in algorithm library.
Because 0<n<=2000000, I set the array as global variable. (outside the main function)