Mileage Bank

查看题解 查看答案
题目描述
Time Limit: 1000 ms
Memory Limit: 256 mb

请先登录再刷题,不会做的题目右上可以查看题解和答案~

输入输出格式
输入描述:
he input file contains several data cases. Each case has many flight records, each per line. The flight record is in the following format:
OriginalCity DistanceCity ActualMiles ClassCode
Each case ends with a line of one zero.
输出描述:
Output the summary of ACMPerk mileages for each test case, one per line.

When calculate bonus, be sure you rounded x.5 up to x+1
输入输出样例
输入样例#:
Beijing Tokyo 1329 F
Shanghai Wuhan 433 Y
0
输出样例#:
复制
3158
题目来源
北京大学机考题
重置

提交代码后在此处可查看状态