結果

問題 No.369 足し間違い
ユーザー mban259mban259
提出日時 2016-05-13 22:27:50
言語 C#(csc)
(csc 3.9.0)
結果
TLE  
実行時間 -
コード長 422 bytes
コンパイル時間 848 ms
コンパイル使用メモリ 113,016 KB
実行使用メモリ 58,060 KB
最終ジャッジ日時 2024-04-15 16:34:01
合計ジャッジ時間 4,463 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
30,976 KB
testcase_01 AC 25 ms
23,908 KB
testcase_02 AC 27 ms
26,024 KB
testcase_03 AC 26 ms
24,112 KB
testcase_04 TLE -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class A {
    static int N, v;
    static int[] a;
    static int ans = 0;
   static void Main() {
        Read();
        Console.WriteLine(ans);
    }
    static void Read() {
        N = int.Parse(Console.ReadLine());
        string s = Console.ReadLine();
        for(int i = 0; i < N; i++) {
            ans += int.Parse(s.Split(' ')[i]);
        }
        ans -= int.Parse(Console.ReadLine());
    }
}
0