Submission #19487340


Source Code Expand

Copy
#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  cout<<max(a+b,max(a-b,a*b))<<endl;
}

Submission Info

Submission Time
Task A - Add Sub Mul
User Nattyu3
Language C++ (GCC 9.2.1)
Score 100
Code Size 125 Byte
Status AC
Exec Time 9 ms
Memory 3608 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 9 ms 3508 KB
sample_02.txt AC 2 ms 3504 KB
sample_03.txt AC 2 ms 3604 KB
subtask_1_01.txt AC 2 ms 3504 KB
subtask_1_02.txt AC 2 ms 3604 KB
subtask_1_03.txt AC 2 ms 3420 KB
subtask_1_04.txt AC 2 ms 3604 KB
subtask_1_05.txt AC 2 ms 3536 KB
subtask_1_06.txt AC 2 ms 3572 KB
subtask_1_07.txt AC 2 ms 3608 KB
subtask_1_08.txt AC 2 ms 3368 KB
subtask_1_09.txt AC 2 ms 3528 KB
subtask_1_10.txt AC 2 ms 3368 KB