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

Evgeny help [1] // Problem 1576. Telephone Tariffs 30 Nov 2010 23:25
#include <iostream>
#include <stdio.h>

using namespace std;


int main(){
int b[2],c[3],u,n,min,sec,min_all;
cin>>b[0]>>b[1]>>c[0]>>c[1]>>c[2]>>u>>n;
for (int i=0; i < n; i++) {
    scanf("%d:%d", &min, &sec);
    if (min==0 && sec<7) continue;
    if (sec != 0)
    min += 1;
    b[0] += min*b[1];
    min_all += min;
}
printf("Basic: %d\n",b[0]);
printf("Combined: %d\n",c[0]);
printf("Unlimited: %d\n",u);
system("pause");
return 0;
}

WA1 (
Yan_Kurganov (Kovrov STA) Re: help // Problem 1576. Telephone Tariffs 13 Dec 2010 04:00
had the same problem. decided - to put a space