結果
| 問題 | No.1406 Test |
| コンテスト | |
| ユーザー |
xRS43BofaUEZ5gc
|
| 提出日時 | 2021-03-02 09:05:04 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 707 bytes |
| 記録 | |
| コンパイル時間 | 2,545 ms |
| コンパイル使用メモリ | 89,084 KB |
| 実行使用メモリ | 43,068 KB |
| 最終ジャッジ日時 | 2026-09-09 08:15:15 |
| 合計ジャッジ時間 | 5,801 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 RE * 4 |
ソースコード
import java.util.Arrays;
import java.util.Scanner;
public class HelloWorld {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int number_total = Integer.parseInt(sc.nextLine());
String[] line = sc.nextLine().split(" ");
int[] array = Arrays.stream(line).mapToInt(Integer::parseInt).toArray();
int sum = 0;
int count = 0;
for (int i = 0; i < number_total - 1; i ++) {
sum += array[i];
}
for (int i = sum; i <= sum + 100; i ++) {
if (i % number_total == 0) {
count +=1;
}
}
System.out.println(count);
}
}
xRS43BofaUEZ5gc