python algorithm_HW2_b.py
----> 2*5 #C gamepython algorithm_HW2_e.py
----> 2*n (def:6) #C gamepython algorithm_HW2_g.py
----> 2*5 #C game (expected number)python algorithm_HW2_j.py
----> 2*n (def:6) #C game (expected number)
algorithm_HW2_b.exe
----> 2*5 #C gamealgorithm_HW2_e.exe
----> 2*n (def:6) #C gamealgorithm_HW2_g.exe
----> 2*5 #C game (expected number)algorithm_HW2_j.exe
----> 2*n (def:6) #C game (expected number)
- 直接執行 .exe 檔
- 終端機
cd
到程式資料夾下 - 輸入
python algorithm_HW2_b.py
或python algorithm_HW2_e.py
、python algorithm_HW2_g.py
、python algorithm_HW2_j.py
- 出現程式視窗
2c
= Both two number are correct.1c
= Only one number is correct.0c
= Both two number are wrong.- 輸入完按按鈕
Submit
- 一開始輸入 2*n 的 #c,n 要多少(題目要求2~6)。