結果

問題 No.410 出会い
ユーザー swdamdrswdamdr
提出日時 2017-01-26 14:32:47
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 398 bytes
コンパイル時間 2,179 ms
コンパイル使用メモリ 105,504 KB
実行使用メモリ 25,996 KB
最終ジャッジ日時 2023-08-25 00:00:49
合計ジャッジ時間 5,346 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 66 ms
25,816 KB
testcase_12 AC 67 ms
23,724 KB
testcase_13 AC 66 ms
23,804 KB
testcase_14 AC 66 ms
21,764 KB
testcase_15 AC 67 ms
23,704 KB
testcase_16 AC 67 ms
25,860 KB
testcase_17 AC 67 ms
23,756 KB
testcase_18 AC 67 ms
23,964 KB
testcase_19 AC 66 ms
23,748 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 67 ms
23,720 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.Linq;
using System.Collections.Generic;

class Program
{
    static void Main(string[] args)
    {
        int[] a = Console.ReadLine().Split().Select(v => Math.Abs(int.Parse(v))).ToArray();
        int[] b = Console.ReadLine().Split().Select(v => Math.Abs(int.Parse(v))).ToArray();

        Console.WriteLine((a.Sum() + b.Sum()) / 2.0);
        Console.Read();
    }
}

0