結果

問題 No.851 テストケース
ユーザー ixTL255ixTL255
提出日時 2019-09-08 01:31:39
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 65 ms / 3,153 ms
コード長 584 bytes
コンパイル時間 2,192 ms
コンパイル使用メモリ 104,132 KB
実行使用メモリ 23,840 KB
最終ジャッジ日時 2023-09-09 22:20:17
合計ジャッジ時間 4,772 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
21,620 KB
testcase_01 AC 62 ms
21,724 KB
testcase_02 AC 60 ms
23,836 KB
testcase_03 AC 63 ms
23,812 KB
testcase_04 AC 63 ms
21,896 KB
testcase_05 AC 63 ms
23,840 KB
testcase_06 AC 62 ms
21,756 KB
testcase_07 AC 63 ms
21,840 KB
testcase_08 AC 62 ms
23,820 KB
testcase_09 AC 64 ms
23,828 KB
testcase_10 AC 64 ms
21,624 KB
testcase_11 AC 64 ms
23,804 KB
testcase_12 AC 63 ms
19,872 KB
testcase_13 AC 63 ms
21,948 KB
testcase_14 AC 65 ms
21,852 KB
testcase_15 AC 64 ms
21,784 KB
testcase_16 AC 64 ms
21,884 KB
testcase_17 AC 64 ms
23,736 KB
testcase_18 AC 64 ms
21,712 KB
testcase_19 AC 61 ms
21,724 KB
testcase_20 AC 60 ms
21,744 KB
testcase_21 AC 64 ms
21,820 KB
testcase_22 AC 63 ms
23,736 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

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]);
		}
	}
}
0