Submission #19484838


Source Code Expand

Copy
#include <bits/stdc++.h>
#define rep(i, n) for (long long i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using V = vector<long long>;

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

Submission Info

Submission Time
Task A - Add Sub Mul
User backrunum
Language C++ (GCC 9.2.1)
Score 100
Code Size 332 Byte
Status AC
Exec Time 8 ms
Memory 3592 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 16
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All sample_01.txt, sample_02.txt, sample_03.txt, sample_01.txt, sample_02.txt, sample_03.txt, subtask_1_01.txt, subtask_1_02.txt, subtask_1_03.txt, subtask_1_04.txt, subtask_1_05.txt, subtask_1_06.txt, subtask_1_07.txt, subtask_1_08.txt, subtask_1_09.txt, subtask_1_10.txt
Case Name Status Exec Time Memory
sample_01.txt AC 8 ms 3592 KB
sample_02.txt AC 2 ms 3432 KB
sample_03.txt AC 2 ms 3576 KB
subtask_1_01.txt AC 2 ms 3536 KB
subtask_1_02.txt AC 2 ms 3500 KB
subtask_1_03.txt AC 2 ms 3424 KB
subtask_1_04.txt AC 2 ms 3536 KB
subtask_1_05.txt AC 2 ms 3576 KB
subtask_1_06.txt AC 2 ms 3584 KB
subtask_1_07.txt AC 3 ms 3432 KB
subtask_1_08.txt AC 2 ms 3432 KB
subtask_1_09.txt AC 2 ms 3536 KB
subtask_1_10.txt AC 2 ms 3424 KB