Submission #575963


Source Code Expand

Copy
#include <iostream>

using namespace std;

int main()
{
    int a,d;
    cin >> a >> d;
    if((a+1) * d > a * (d+1))
    {
        cout << (a+1) * d << endl;
    }
    else
    {
        cout << a * (d+1) << endl;
    }
    return 0;

Submission Info

Submission Time
Task A - ゲーム
User abc10946
Language C++ (GCC 4.9.2)
Score 0
Code Size 252 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:17:13: error: expected ‘}’ at end of input
     return 0;
             ^