結果
問題 | No.369 足し間違い |
ユーザー | mban259 |
提出日時 | 2016-05-13 22:39:33 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 68 ms / 2,000 ms |
コード長 | 401 bytes |
コンパイル時間 | 2,208 ms |
コンパイル使用メモリ | 102,184 KB |
実行使用メモリ | 23,268 KB |
最終ジャッジ日時 | 2023-07-28 07:15:17 |
合計ジャッジ時間 | 3,389 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 56 ms
20,752 KB |
testcase_01 | AC | 56 ms
20,676 KB |
testcase_02 | AC | 57 ms
22,836 KB |
testcase_03 | AC | 56 ms
20,732 KB |
testcase_04 | AC | 67 ms
21,104 KB |
testcase_05 | AC | 65 ms
21,008 KB |
testcase_06 | AC | 67 ms
23,140 KB |
testcase_07 | AC | 68 ms
23,268 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; class A { static int N; static int ans = 0; static void Main() { Read(); Console.WriteLine(ans); } static void Read() { N = int.Parse(Console.ReadLine()); string[] s = Console.ReadLine().Split(' '); for(int i = 0; i < N; i++) { ans += int.Parse(s[i]); } ans -= int.Parse(Console.ReadLine()); } }