Time Limit: 1 sec
Memory Limit: 16MB
News agency pays money for articles according to some rules. Each character has its own value (some characters may have value equals to zero). Author gets his payment as a sum of all character's values in the article. You have to determine the amount of money that news agency must pay to an author.
x.yy$
". Where "x
" is a number of dollars without leading zeros, and "yy
"
number of cents with one leading zero if necessary. Examples: "3.32$
",
"13.07$
", "71.30$
", "0.09$
".
1
7
a 3
W 10
A 100
, 10
k 7
. 3
I 13
7
ACM International Collegiate Programming Contest (abbreviated
as ACM-ICPC or just ICPC) is an annual multi-tiered competition
among the universities of the world. The ICPC challenges students
to set ever higher standards of excellence for themselves
through competition that rewards team work, problem analysis,
and rapid software development.
From Wikipedia.
3.74$
Problem setters: Aleksej Viktorchik, Leonid Shishlo.
Huge Easy Contest #1