結果

問題 No.9005 実行時間/使用メモリテスト(テスト用)
ユーザー ぴろずぴろず
提出日時 2015-02-16 23:46:45
言語 Java21
(openjdk 21)
結果
MLE  
実行時間 -
コード長 471 bytes
コンパイル時間 3,266 ms
コンパイル使用メモリ 71,624 KB
実行使用メモリ 447,508 KB
最終ジャッジ日時 2023-09-06 01:47:07
合計ジャッジ時間 10,242 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #


import java.util.Scanner;

public class Main {

	static int[] sizeMB = {50,120,350,400,700};
	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