結果
| 問題 |
No.2414 2 KA 3 KA
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-19 20:39:44 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 2,000 ms |
| コード長 | 509 bytes |
| コンパイル時間 | 934 ms |
| コンパイル使用メモリ | 112,336 KB |
| 実行使用メモリ | 27,000 KB |
| 最終ジャッジ日時 | 2024-11-29 16:15:13 |
| 合計ジャッジ時間 | 2,787 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 28 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
class Program
{
static int NN => int.Parse(ReadLine());
static int[] NList => ReadLine().Split().Select(int.Parse).ToArray();
public static void Main()
{
Solve();
}
static void Solve()
{
var c = NList;
var x = c[0] * c[1] * 2 + c[1] * c[2] * 2 + c[2] * c[0] * 2;
var y = c[0] * c[1] * c[2];
WriteLine(x > y ? 2 : 3);
}
}