結果

問題 No.369 足し間違い
ユーザー phsplsphspls
提出日時 2020-03-28 11:15:41
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 69 ms / 2,000 ms
コード長 314 bytes
コンパイル時間 1,981 ms
コンパイル使用メモリ 103,848 KB
実行使用メモリ 24,140 KB
最終ジャッジ日時 2023-08-30 17:31:13
合計ジャッジ時間 3,461 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
21,744 KB
testcase_01 AC 58 ms
21,700 KB
testcase_02 AC 59 ms
23,688 KB
testcase_03 AC 59 ms
23,608 KB
testcase_04 AC 69 ms
24,140 KB
testcase_05 AC 66 ms
21,792 KB
testcase_06 AC 68 ms
22,060 KB
testcase_07 AC 69 ms
22,092 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;

public class P0369 {
    public static void Main() {
        var n = int.Parse(Console.ReadLine().Trim());
        var a = Console.ReadLine().Trim().Split(' ').Select(int.Parse).Sum();
        var v = int.Parse(Console.ReadLine().Trim());
        Console.WriteLine(a - v);
    }
}
0