National Treasures Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1038 Accepted Submission(s): 364 Problem Description The great hall of the national museum has been robbed few times recently. Ev…