結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
ixTL255
|
| 提出日時 | 2019-09-08 01:31:39 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 3,153 ms |
| コード長 | 584 bytes |
| コンパイル時間 | 845 ms |
| コンパイル使用メモリ | 105,728 KB |
| 実行使用メモリ | 19,200 KB |
| 最終ジャッジ日時 | 2024-06-27 14:49:51 |
| 合計ジャッジ時間 | 2,409 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
public class Yuki851
{
public static void Main()
{
Console.ReadLine();
var x = Console.ReadLine().Split(' ').Select(n => long.Parse(n)).ToList();
if(x.Count() > 1) Console.WriteLine("\"assert\"");
else
{
var y = long.Parse(Console.ReadLine());
var z = long.Parse(Console.ReadLine());
var sum = new List<long>();
sum.Add(x[0] + y);
sum.Add(x[0] + z);
sum.Add(y + z);
sum.Sort();
if(sum[2] == sum[1]) Console.WriteLine(sum[0]);
else Console.WriteLine(sum[1]);
}
}
}
ixTL255