We will use these commands to compile:
"make hw1_6" for problem 1.6.1
"make gcd_by_binary" for problem 1.7.1
"make gcd_by_euclid" for problem 1.7.2
and then execute the code using:
"./hw1_6" for problem 1.6.1
"./gcd_by_binary" for problem 1.7.1
"./gcd_by_euclid" for problem 1.7.2
with some test input (stdin) and check the output (stdout) of the program.
For every single test data, we'll limit the running time of the process. The time limit will not be very tight, so any appropriate implementation can pass it.
You only know whether your codes are correct or not after submitting. You can check the scoreboard, 1.0 means correct, 0.0 means your program failed on some test data.
If you pass all test data and your final total submission is no more than 3, you will get the full points in this problem.
If you use more than 3 submissions, you will lose 10%, 20%, 40%, 80% and 100% score according to the number of submissions.
(Don't submit too many times after you pass the test because it still will count)
The deadline of this homework is 3/24 16:20. If you submit your codes after the deadline, you will lose 10% of the points per 12 hours. After the hard deadline (4/2 16:20) of this homework, you can still submit your code, but it won't affect your score.
If you have any question, please send an email to dsa@csie.ntu.edu.tw