mirror of
https://github.com/tiennm99/codeforces.git
synced 2026-06-09 16:13:53 +00:00
16 lines
369 B
C#
16 lines
369 B
C#
using System;
|
|
|
|
namespace _479A
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
int a = int.Parse(Console.ReadLine());
|
|
int b = int.Parse(Console.ReadLine());
|
|
int c = int.Parse(Console.ReadLine());
|
|
Console.WriteLine(Math.Max(a + b + c, Math.Max(a * b * c, Math.Max(a + b * c, Math.Max(a * b + c, Math.Max((a + b) * c, a * (b + c)))))));
|
|
}
|
|
}
|
|
}
|