10429 - ReadFirst For Exam   

Description

1. Grading
  • Midtern exam 2 accounts for 15% of your semester grade.
  • The grade of your midterm exam 2 is computed as follows:
    Let P1 be 
    11001 , P2 be 11935, P3 be 13206, P4 be 13207,

Grade = Score(P1*(4.5/4)+ Score(P2)*(4.5/5) + max { Score(P3)*(6/10), Score(P4)*(6/10},
where Score(Pi) is the number of testcases you earned for problem Pi.

  • That is, choose only one of P3 and P4 to solve!
  • There are totally 15 points.
2. Recommended problem-solving order
  • {11001, 11935} --> {13206, 13207} 
3. The selection between 13206 and 13207:
  • For problem 13206, the main objective is to test the implementation of polymorphism, inheritance and stringstream. The problem is not hard. But be aware that if you're not familiar with inheritance, it's possible to get no score among all subtask.
  • For problem 13207, the main objective is to test the concept of polymorphism and optimization of your strategy. The problem is similar to practice version. But be aware that if you're not good at optimization, solving 13206 may easier for you to get All Accepted.

Input

Output

Sample Input  Download

Sample Output  Download

Tags




Discuss