Monday, May 15, 2017

UVa online judge 10970

UVa online judge 
problem:10970
Big chocolate
problem:

https://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=1911






Solution:

#include<bits/stdc++.h>
using namespace std;
int main()
{
    ios::sync_with_stdio(false);
    int a,b,i;
    while(cin>>a)
    {
        cin>>b;
        cout<<a*b-1<<endl;
    }
    return 0;
}


//Language:C++

No comments:

Post a Comment