Submission #19488080


Source Code Expand

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


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





Submission Info

Submission Time
Task A - Add Sub Mul
User koni60
Language C++ (GCC 9.2.1)
Score 100
Code Size 273 Byte
Status AC
Exec Time 5 ms
Memory 3616 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 5 ms 3484 KB
sample_02.txt AC 2 ms 3364 KB
sample_03.txt AC 2 ms 3384 KB
subtask_1_01.txt AC 2 ms 3388 KB
subtask_1_02.txt AC 2 ms 3556 KB
subtask_1_03.txt AC 2 ms 3492 KB
subtask_1_04.txt AC 2 ms 3384 KB
subtask_1_05.txt AC 2 ms 3600 KB
subtask_1_06.txt AC 2 ms 3616 KB
subtask_1_07.txt AC 2 ms 3364 KB
subtask_1_08.txt AC 5 ms 3428 KB
subtask_1_09.txt AC 3 ms 3508 KB
subtask_1_10.txt AC 2 ms 3388 KB