結果
問題 | No.369 足し間違い |
ユーザー |
![]() |
提出日時 | 2016-06-27 22:16:25 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 99 ms / 2,000 ms |
コード長 | 609 bytes |
コンパイル時間 | 3,204 ms |
コンパイル使用メモリ | 74,476 KB |
実行使用メモリ | 51,780 KB |
最終ジャッジ日時 | 2024-10-11 22:27:33 |
合計ジャッジ時間 | 4,358 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
package yukicoder; import java.io.BufferedReader; import java.io.InputStreamReader; public class No369TashiMachigai { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int times = Integer.parseInt(br.readLine()); String[] nums = br.readLine().split(" "); int num = 0; for(int i = 0; i < nums.length; i++) { num += Integer.parseInt(nums[i]); } int ans = num - Integer.parseInt(br.readLine()); System.out.println(ans); } }