結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
mencotton
|
| 提出日時 | 2019-07-26 21:37:31 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 802 bytes |
| コンパイル時間 | 832 ms |
| コンパイル使用メモリ | 109,356 KB |
| 実行使用メモリ | 27,572 KB |
| 最終ジャッジ日時 | 2024-07-02 06:44:12 |
| 合計ジャッジ時間 | 2,282 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 RE * 2 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Linq;
namespace yu_851
{
class Program
{
static void Main(string[] args)
{
Console.ReadLine();
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (x.Length > 1) Console.WriteLine("\"assert\"");
else
{
int y = int.Parse(Console.ReadLine());
int z = int.Parse(Console.ReadLine());
int[] sum = new int[3];
if (Array.IndexOf(sum, x[0] + y) < 0) sum[0] = x[0] + y;
if (Array.IndexOf(sum, y + z) < 0) sum[1] = y + z;
if (Array.IndexOf(sum, z + x[0]) < 0) sum[2] = z + x[0];
Array.Sort(sum);
Console.WriteLine(sum[1]);
}
}
}
}
mencotton