Pro.ID21426 TitleDemerit Points Title链接http://10.20.2.8/oj/exercise/problem?problem_id=21426 AC0 Submit3 Ratio0.00% 时间&空间限制描述A province to our west, which shall remain nameless, but whose name does not start with A, B, or S, has a unique system for driver's license demerit and merit points. The system works (more or less) as follows. 输入The first line of input contains the date of issue of the license (yyyymmdd) Subsequent lines contain information on offenses, in chronological order. Each such line contains the offense date (yyyymmdd) and the number of points applied (an integer between 2 and 15). 输出Description A province to our west, which shall remain nameless, but whose name does not start with A, B, or S, has a unique system for driver's license demerit and merit points. The system works (more or less) as follows. Input The first line of input contains the date of issue of the license (yyyymmdd) Subsequent lines contain information on offenses, in chronological order. Each such line contains the offense date (yyyymmdd) and the number of points applied (an integer between 2 and 15). Output On the day the license is issued, and on every occasion that the number of merit or demerit points changes, output a line giving the date and the number of points, in the format below. Output terminates when 5 merit points are accumulated following the last offense. Sample Input 19820508 Sample Output 1982-05-08 No merit or demerit points. Source 样例输入19820508 样例输出1982-05-08 No merit or demerit points. 作者 |