ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1576. Telephone Tariffs

Show all messages Hide all messages

AC Kornilenko Leonid (KHAI) 22 Jan 2008 15:13
0.001s and 128Kb :)

...
for (i=0; i<num; i++)
    {
       scanf("%d:%d", &min, &sec);
       if (min==0 && sec<7) continue;
       if (sec != 0)
          min += 1;
       basic_price += min*basic_pm;
       min_all += min;
    }
...

p.s.: HF & GL, it's very easy
Re: AC Ilya (Vologda SPU) 28 Oct 2009 19:22
I wrote analogous solution by myself with a bit different cycles, but now it gets WA#6, not AC :(
Re: AC Rashid Gaziyev 17 Oct 2011 10:53
thx AC