[solved] – Question 9670
Program is used to help a man studying CS in college to maintain his study session – given this information that he do his college HWs based on:
1) time when he got the HW
2) priority (so, assume he needs to do task A before doing B, B before C, and A before C)
Given A B C … Z as Course A, Course B, and so on.
First line is describing NumberofCourse and NumberofPriority he has.
The output is a list of assignments he needs to do based on the problem.
Ex:
INPUT
7 7
A
B
C
D
E
F
G
A B
B A
C D
A E
E F
A G
C E
OUTPUT
A B E G C F D
Stuck in using vector, iterator and all of those stuffs. Help would really be appreciated. Thanks.
Expert Answer
OR

