第二屆CCPC女生賽 粗略題解(要做重現的不要看哦)
阿新 • • 發佈:2018-12-23
因為再不全力投入華為軟體精英挑戰賽就來不及了!
而且直播時講過題了,所以只能粗略寫一個題解,希望大家包涵>.<
基本可以參考程式碼,可以畫圖模擬加思考腦補其原理與過程23333~~
會後續有人寫題解的啦!感謝參加經費、人員都不足的第二屆CCPC女生賽! 希望明年我也有機會參賽!
06是claris的防AK題,雖然我試圖幾次想要說服換掉這題。想補的可以找claris或者等幾天2333
PS:預測全對
PS2:我真的不會說話和撩妹啊哈哈哈哈 T_____________________________________T
【2017CCPC女生賽 A】【水題 模擬】Automatic Judge
Automatic Judge
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 0 Accepted Submission(s): 0
Problem Description Welcome to HDU to take part in the second CCPC girls’ competition!
A new automatic judge system is used for this competition. During the five-hour contest time, you can submit your code to the system, then the judge will reply you. Here is a list of the judge's replies and their meaning:
1.
2.
3.
4.
5.
6.
7.
8.
For each submission, if it is the first time that the judge returns ``AC'' on this problem, then it means you have passed this problem, and the current time will be added to the penalty of your team. In addition, every time you pass a problem, each unsuccessful try for that problem before is counted as 20 minutes penalty, it should also be added to the penalty of your team.
Now given the number of problems in the contest and the submission records of a team. Please write a program to calculate the number of problems the team passed and their penalty.
Input The first line of the input contains an integer
In each test case, there are two integers
In the following