結果

問題 No.369 足し間違い
ユーザー fjafjafjafjafjafja
提出日時 2017-09-16 17:09:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 240 ms / 2,000 ms
コード長 216 bytes
コンパイル時間 3,019 ms
コンパイル使用メモリ 75,092 KB
実行使用メモリ 58,432 KB
最終ジャッジ日時 2024-04-25 14:39:26
合計ジャッジ時間 4,926 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
52,996 KB
testcase_01 AC 109 ms
53,040 KB
testcase_02 AC 108 ms
52,780 KB
testcase_03 AC 113 ms
52,980 KB
testcase_04 AC 216 ms
58,284 KB
testcase_05 AC 157 ms
54,480 KB
testcase_06 AC 226 ms
57,956 KB
testcase_07 AC 240 ms
58,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class A{public static void main(String[] args){Scanner sc=new Scanner(System.in);int a=sc.nextInt();int buf=0;for(int i=0;i<a;i++){buf+=sc.nextInt();}System.out.println(buf-sc.nextInt());}}
0