Submission #866197
Source Code Expand
using System; using System.Collections.Generic; using System.Linq; class Program { static int ReadInt() { return int.Parse(Console.ReadLine()); } static int[] ReadInts() { return Console.ReadLine().Split().Select(int.Parse).ToArray(); } static string[] ReadStrings() { return Console.ReadLine().Split(); } static int Calc(int a, int b, int c) { if (a % 2 == 1 && b % 2 == 1 && c % 2 == 1) { var xs = new[] { a, b, c }.OrderBy(e => e).Take(2).ToArray(); return xs[0] * xs[1]; } return 0; } static void Main() { var abc = ReadInts(); int a = abc[0], b = abc[1], c = abc[2]; Console.WriteLine(Calc(a, b, c)); } }
Submission Info
Submission Time | |
---|---|
Task | A - Divide a Cuboid |
User | noriok |
Language | C# (Mono 4.6.2.0) |
Score | 0 |
Code Size | 734 Byte |
Status | WA |
Exec Time | 45 ms |
Memory | 3160 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 200 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_00.txt, 0_01.txt, 0_02.txt |
All | 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt, 1_05.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_00.txt | AC | 45 ms | 3160 KB |
0_01.txt | AC | 39 ms | 2776 KB |
0_02.txt | AC | 43 ms | 3032 KB |
1_00.txt | AC | 38 ms | 2776 KB |
1_01.txt | AC | 36 ms | 2776 KB |
1_02.txt | AC | 38 ms | 2776 KB |
1_03.txt | WA | 43 ms | 3032 KB |
1_04.txt | WA | 45 ms | 3032 KB |
1_05.txt | WA | 45 ms | 3032 KB |