2.2 PROB Money Systems
这个题目的测试点10十分变态
我写好程序,就是通不过
又没有优化方法
只好提交几十次,终于通过了一次^_^
TASK: money
LANG: PASCAL
Compiling...
Compile: OK
Executing...
sending data (money) money /home/kolstad/trainweb
Test 1 OK [0.003 secs]
Test 2 OK [0.003 secs]
Test 3 OK [0.003 secs]
Test 4 OK [0.005 secs]
Test 5 OK [0.018 secs]
Test 6 OK [0.09 secs]
Test 7 OK [0.004 secs]
Test 8 OK [0.005 secs]
Test 9 OK [0.005 secs]
Test 10 OK [0.99 secs]
Test 11 OK [0.005 secs]
Test 12 OK [0.017 secs]
Test 13 OK [0.029 secs]
All tests OK.
Your program ('money') produced all correct answers! This is your
submission #36 for this problem. Congratulations!
紧接着的下一次就又失败了^_^
TASK: money
LANG: PASCAL
Compiling...
Compile: OK
Executing...
sending data (money) money /home/kolstad/trainweb
Test 1 OK [0.003 secs]
Test 2 OK [0.003 secs]
Test 3 OK [0.004 secs]
Test 4 OK [0.005 secs]
Test 5 OK [0.018 secs]
Test 6 OK [0.093 secs]
Test 7 OK [0.003 secs]
Test 8 OK [0.005 secs]
Test 9 OK [0.006 secs]
Execution error: Your program (`money') used more than the allotted
runtime of 1 seconds (it ended or was stopped at 1.011 seconds) when
presented with test case 10, shown below.
----- Test Case 10 ------
5 10000
5 8 13 21 34
----------------------------
我写的程序:
但这样过总是不好的,各位有什么好办法吗?