結果
| 問題 | No.369 足し間違い |
| コンテスト | |
| ユーザー |
samplelpmas
|
| 提出日時 | 2016-12-30 10:11:34 |
| 言語 | Java (openjdk 27 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 140 ms / 2,000 ms |
| + 89µs | |
| コード長 | 418 bytes |
| 記録 | |
| コンパイル時間 | 1,655 ms |
| コンパイル使用メモリ | 85,428 KB |
| 実行使用メモリ | 48,536 KB |
| 最終ジャッジ日時 | 2026-10-04 04:10:09 |
| 合計ジャッジ時間 | 3,822 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int trueAnswer = 0;
for (int i = 0; i < N; i++) {
trueAnswer += sc.nextInt();
}
int yukiAnswer = sc.nextInt();
int diff = trueAnswer - yukiAnswer;
System.out.println(diff);
}
}
samplelpmas