Submission #19558525


Source Code Expand

Copy
#include <bits/stdc++.h>
using namespace std;

int main()
{
  int a, b;
  cin >> a >> b;
  
  cout << max(max(a + b, a - b), a * b) << endl;
}

Submission Info

Submission Time
Task A - +-x
User tamamatan
Language C++ (GCC 9.2.1)
Score 100
Code Size 151 Byte
Status AC
Exec Time 6 ms
Memory 3636 KB

Judge Result

Set Name All Sample
Score / Max Score 100 / 100 0 / 0
Status
AC × 12
AC × 3
Set Name Test Cases
All sample_01, sample_02, sample_03, testcase_0, testcase_1, testcase_2, testcase_3, testcase_4, testcase_5, testcase_6, testcase_7, testcase_8
Sample sample_01, sample_02, sample_03
Case Name Status Exec Time Memory
sample_01 AC 6 ms 3528 KB
sample_02 AC 2 ms 3572 KB
sample_03 AC 2 ms 3636 KB
testcase_0 AC 3 ms 3456 KB
testcase_1 AC 2 ms 3588 KB
testcase_2 AC 3 ms 3584 KB
testcase_3 AC 2 ms 3396 KB
testcase_4 AC 2 ms 3408 KB
testcase_5 AC 1 ms 3524 KB
testcase_6 AC 2 ms 3584 KB
testcase_7 AC 1 ms 3580 KB
testcase_8 AC 2 ms 3528 KB