結果
| 問題 |
No.369 足し間違い
|
| コンテスト | |
| ユーザー |
t8m8⛄️
|
| 提出日時 | 2016-08-17 15:14:12 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 281 ms / 2,000 ms |
| コード長 | 755 bytes |
| コンパイル時間 | 4,054 ms |
| コンパイル使用メモリ | 84,888 KB |
| 実行使用メモリ | 47,580 KB |
| 最終ジャッジ日時 | 2024-11-07 18:47:48 |
| 合計ジャッジ時間 | 6,625 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
import java.util.*;
import java.io.*;
import java.awt.geom.*;
import java.math.*;
public class No0369 {
static final Scanner in = new Scanner(System.in);
static final PrintWriter out = new PrintWriter(System.out,false);
static boolean debug = false;
static void solve() {
int n = in.nextInt();
long sum = 0;
for (int i=0; i<n; i++) {
sum += in.nextInt();
}
int v = in.nextInt();
out.println(sum - v);
}
public static void main(String[] args) {
debug = args.length > 0;
long start = System.nanoTime();
solve();
out.flush();
long end = System.nanoTime();
dump((end - start) / 1000000 + " ms");
in.close();
out.close();
}
static void dump(Object... o) { if (debug) System.err.println(Arrays.deepToString(o)); }
}
t8m8⛄️