結果
| 問題 |
No.369 足し間違い
|
| コンテスト | |
| ユーザー |
yun_app
|
| 提出日時 | 2016-05-16 10:01:17 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 2,000 ms |
| コード長 | 691 bytes |
| コンパイル時間 | 1,864 ms |
| コンパイル使用メモリ | 75,144 KB |
| 実行使用メモリ | 39,596 KB |
| 最終ジャッジ日時 | 2024-10-06 04:19:31 |
| 合計ジャッジ時間 | 2,916 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
String[] lines = br.readLine().split(" ");
int v = Integer.parseInt(br.readLine());
int sum = 0;
for(String st:lines){
sum += Integer.parseInt(st);
}
System.out.println(sum-v);
}
}
yun_app