結果
問題 | No.369 足し間違い |
ユーザー | ちよちゃん |
提出日時 | 2016-08-01 01:44:21 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 244 ms / 2,000 ms |
コード長 | 598 bytes |
コンパイル時間 | 3,426 ms |
コンパイル使用メモリ | 75,328 KB |
実行使用メモリ | 46,736 KB |
最終ジャッジ日時 | 2024-04-24 13:27:18 |
合計ジャッジ時間 | 5,200 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 122 ms
41,324 KB |
testcase_01 | AC | 111 ms
40,640 KB |
testcase_02 | AC | 113 ms
41,148 KB |
testcase_03 | AC | 131 ms
40,968 KB |
testcase_04 | AC | 241 ms
46,736 KB |
testcase_05 | AC | 193 ms
42,524 KB |
testcase_06 | AC | 229 ms
46,432 KB |
testcase_07 | AC | 244 ms
46,512 KB |
ソースコード
package yukicoder; import java.util.Scanner; public class yuki369 { public static void main(String[] args){ //System.out.println("helloWorld"); Scanner scan = new Scanner(System.in); int count = scan.nextInt(); int[] countArr = new int [count]; int addcount = 0; for (int i = 0; i < count; i++) { //countArr[count] = scan.nextInt(); //addcount += countArr[count]; addcount += scan.nextInt(); } int yukians = scan.nextInt(); //System.out.println("addcount" + addcount); //System.out.println("yukians" + yukians); System.out.println(addcount - yukians); } }