Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|

Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |

Language: Customer support
Description Customer support department in an "Incomprehension Amateurs, Ltd" software company has call center for answering users' questions. Support prices are as follows:
So, for example, if user asks the same question three times, first receives incorrect answer, then correct one, and the third time correct answer with explanation, it will cost him 10 + 20 + (40 + 1 * 10) = 80 USD. Customers are billed monthly according to call log. Company engineers review the log and for each question determine: 1. unique number, so the equivalent questions have same numbers, Given that data, your program must calculate the payment amount. Input Input file contains number of calls a _{i}x, where _{i}q is integer question number, _{i}a = 1 if the answer was correct, 0 otherwise, _{i}x = 1 if explanation was given, 0 otherwise._{i}## Constraints1 ≤ ^{6}. Output Output file must contain a single number — payment amount. Sample Input
Sample Output
Hint Bold texts appearing in the sample sections are informative and do not form part of the actual data. Source Northeastern Europe 2006, Far-Eastern Subregion |

[Submit] [Go Back] [Status] [Discuss]

All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di

Any problem, Please Contact Administrator