結果
| 問題 |
No.2835 Take and Flip
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-15 04:15:26 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 469 bytes |
| コンパイル時間 | 3,064 ms |
| コンパイル使用メモリ | 76,228 KB |
| 実行使用メモリ | 59,192 KB |
| 最終ジャッジ日時 | 2024-08-15 04:15:49 |
| 合計ジャッジ時間 | 18,815 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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();
}
}