|
|
вернуться в форумhelp Послано Evgeny 30 ноя 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 ( Re: help had the same problem. decided - to put a space |
|
|