Submission #88976

# Submission time Handle Problem Language Result Execution time Memory
88976 2018-12-10T07:37:38 Z nika Schools (IZhO13_school) C++14
0 / 100
212 ms 688 KB
#include <bits/stdc++.h>

using namespace std;
long long int a,i,b,c,d,e,n=0;
int main()
{
    cin>>e>>a>>b;
    if(a+b>e){
        return 0;
    }
    for(i=1;i<=e;i++){
        cin>>c>>d;
        if(n<c*a+d*b){
            n=c*a+d*b;
        }
    }
    if(a==b){
        n=n-a;
    }
    else
        n=n-1-max(a,b);
    cout<<n;
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 376 KB Output isn't correct
2 Incorrect 2 ms 480 KB Output isn't correct
3 Incorrect 2 ms 480 KB Output isn't correct
4 Incorrect 2 ms 496 KB Output isn't correct
5 Incorrect 2 ms 520 KB Output isn't correct
6 Incorrect 2 ms 520 KB Output isn't correct
7 Incorrect 5 ms 520 KB Output isn't correct
8 Incorrect 5 ms 688 KB Output isn't correct
9 Incorrect 5 ms 688 KB Output isn't correct
10 Incorrect 5 ms 688 KB Output isn't correct
11 Incorrect 5 ms 688 KB Output isn't correct
12 Incorrect 5 ms 688 KB Output isn't correct
13 Incorrect 25 ms 688 KB Output isn't correct
14 Incorrect 52 ms 688 KB Output isn't correct
15 Incorrect 104 ms 688 KB Output isn't correct
16 Incorrect 118 ms 688 KB Output isn't correct
17 Incorrect 157 ms 688 KB Output isn't correct
18 Incorrect 169 ms 688 KB Output isn't correct
19 Incorrect 179 ms 688 KB Output isn't correct
20 Incorrect 212 ms 688 KB Output isn't correct