結果

問題 No.9005 実行時間/使用メモリテスト(テスト用)
ユーザー ぴろずぴろず
提出日時 2015-02-16 23:43:31
言語 Java21
(openjdk 21)
結果
MLE  
実行時間 -
コード長 471 bytes
コンパイル時間 2,121 ms
コンパイル使用メモリ 71,556 KB
実行使用メモリ 499,144 KB
最終ジャッジ日時 2023-09-06 01:46:45
合計ジャッジ時間 8,753 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 MLE -
testcase_01 MLE -
testcase_02 MLE -
testcase_03 TLE -
testcase_04 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #


import java.util.Scanner;

public class Main {

	static int[] sizeMB = {50,80,120,450,1000};
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sizeMB[n-1] * 1000 * 1000 / 4;
		int[] largeArray = new int[m];
		for(int i=0;i<m;i++) {
			largeArray[i] = (int) (Math.random() * Integer.MAX_VALUE);
		}
		int xor = 0;
		for(int i=0;i<m;i++) {
			xor ^= largeArray[i];
		}
		System.out.println(xor); //WA
	}
}
0