Submission #19559176


Source Code Expand

Copy
fast=lambda:stdin.readline().strip()
zzz=lambda:[int(i) for i in fast().split()]
z,zz=input,lambda:list(map(int,z().split()))
szz,graph,mod,szzz=lambda:sorted(zz()),{},10**9+7,lambda:sorted(zzz())
from re import *
from sys import *
from math import *
from heapq import *
from queue import *
from bisect import *
from string import *
from itertools import *
from collections import *
from math import factorial as f
from bisect import bisect as bs
from bisect import bisect_left as bsl
from collections import Counter as cc
from itertools import accumulate as ac
def lcd(xnum1,xnum2):return (xnum1*xnum2//gcd(xnum1,xnum2))
def output(answer):stdout.write(str(answer))
###########################---Test-Case---#################################
"""

  If you think, You Know me, Then you probably don't know me !


"""
###########################---START-CODING---##############################

a,b=zzz()
t1=a*b
t2=a-b
t3=a+b
print(max(t1,t2,t3))



    
    
    
    













Submission Info

Submission Time
Task A - +-x
User vjudge5
Language PyPy3 (7.3.0)
Score 100
Code Size 982 Byte
Status AC
Exec Time 342 ms
Memory 87368 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 342 ms 87368 KB
sample_02 AC 78 ms 68728 KB
sample_03 AC 78 ms 68600 KB
testcase_0 AC 77 ms 68688 KB
testcase_1 AC 76 ms 68420 KB
testcase_2 AC 77 ms 68712 KB
testcase_3 AC 78 ms 68528 KB
testcase_4 AC 79 ms 68728 KB
testcase_5 AC 71 ms 68604 KB
testcase_6 AC 78 ms 68716 KB
testcase_7 AC 79 ms 68540 KB
testcase_8 AC 78 ms 68608 KB