結果
問題 |
No.369 足し間違い
|
ユーザー |
![]() |
提出日時 | 2016-06-30 22:56:05 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 422 bytes |
コンパイル時間 | 3,398 ms |
コンパイル使用メモリ | 74,948 KB |
実行使用メモリ | 59,616 KB |
最終ジャッジ日時 | 2024-10-11 23:55:55 |
合計ジャッジ時間 | 5,407 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 5 |
ソースコード
import java.util.Scanner; public class TGMain { public static void main(String[] args){ int a, b, c; int v; int ans = 0; Scanner sc = new Scanner(System.in); int[] all = new int[sc.nextInt()]; for(int i = 0; i < all.length; i++){ ans += sc.nextInt(); } v = sc.nextInt(); System.out.println(v - ans); } }