結果
問題 | No.369 足し間違い |
ユーザー |
![]() |
提出日時 | 2017-05-17 17:51:08 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 215 ms / 2,000 ms |
コード長 | 358 bytes |
コンパイル時間 | 3,339 ms |
コンパイル使用メモリ | 73,816 KB |
実行使用メモリ | 47,380 KB |
最終ジャッジ日時 | 2024-09-17 21:03:34 |
合計ジャッジ時間 | 4,749 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
import java.util.*; public class Test39{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] num = new int[N]; int sum = 0; for(int i=0; i<num.length; i++){ num[i] = sc.nextInt(); sum += num[i]; } int V = sc.nextInt(); System.out.println(sum-V); } }