Phone Bills【PAT 1016题】--- 电话账单结算 题目链接:http://pat.zju.edu.cn/contests/pat-practise/1016 以前在POJ上也见过类似的题,当时还不会qsort,菜的一米,遇到大数据还用链表做,还没等把输入处理完成,就已经头大的发麻了,看来我还是有一点进步的。 这道题我开了个record数组,记录
Output Specification: For each test case, you must print a phone bill for each customer. Bills must be printed in alphabetical order of customers' names. For each customer, first print in a line the name of the customer and the month of the bill in the format shown by the sample. Then...
For each test case, you must print a phone bill for each customer. Bills must be printed in alphabetical order of customers' names. For each customer, first print in a line the name of the customer and the month of the bill in the format shown by the sample. Then for each time perio...
A1016 Phone Bills [排序] 题目大意: 查话费记录和账单,我理解完就码了还花了挺长时间的,自己做搞不出来唉。到时候再做一遍吧,看看理解能深入点不。 思路: 先全部排序,排序方法如题意思(见代码),然后先扫描相同名字的记录,如果有接通和挂断的就是一个有效通话记录,进行标记,然后再在这个名字里面的查询输出每...
1016. Phone Bills (25) A long-distance telephone company charges its customers by the following rules: Making a long-distance call costs a certain amount per minute, depending on the time of day when the call is made. When a customer starts connecting a long-distance call, the time will...
1016 Phone Bills (25 分) 1016 Phone Bills (25 分) A long-distance telephone company charges its customers by the following rules: Making a long-distance call costs a certain amount per minute, depending on the time of day when the call is made. When a customer starts connecting a long...
Phone Bills【PAT 1016题】--- 电话账单结算 题目链接:http://pat.zju.edu.cn/contests/pat-practise/1016 以前在POJ上也见过类似的题,当时还不会qsort,菜的一米,遇到大数据还用链表做,还没等把输入处理完成,就已经头大的发麻了,看来我还是有一点进步的。