結果
| 問題 | No.2835 Take and Flip |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-15 04:15:26 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 469 bytes |
| 記録 | |
| コンパイル時間 | 4,394 ms |
| コンパイル使用メモリ | 83,872 KB |
| 実行使用メモリ | 63,340 KB |
| 最終ジャッジ日時 | 2026-04-03 21:11:11 |
| 合計ジャッジ時間 | 13,806 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 3 WA * 19 |
ソースコード
import java.util.Scanner;
public class OptimalGame {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int[] A = new int[n];
for (int i = 0; i < n; i++) {
A[i] = scanner.nextInt();
}
int sum = 0;
for (int i = 0; i < n; i++) {
sum += A[i];
}
System.out.println(sum);
scanner.close();
}
}