結果
問題 |
No.369 足し間違い
|
ユーザー |
|
提出日時 | 2016-05-13 22:25:04 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 516 bytes |
コンパイル時間 | 929 ms |
コンパイル使用メモリ | 108,144 KB |
実行使用メモリ | 55,984 KB |
最終ジャッジ日時 | 2024-10-05 16:49:25 |
合計ジャッジ時間 | 4,515 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 1 TLE * 1 -- * 3 |
コンパイルメッセージ
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, v; static int[] a; static void Main() { Read(); int ans = 0; for(int i = 0; i < N; i++) { ans += a[i]; } Console.WriteLine(ans - v); } static void Read() { N = int.Parse(Console.ReadLine()); a = new int[N]; string s = Console.ReadLine(); for(int i = 0; i < N; i++) { a[i] = int.Parse(s.Split(' ')[i]); } v = int.Parse(Console.ReadLine()); } }