結果

問題 No.2071 Shift and OR
ユーザー tailstails
提出日時 2022-09-16 21:40:30
言語 Perl
(5.38.2)
結果
TLE  
実行時間 -
コード長 179 bytes
コンパイル時間 318 ms
コンパイル使用メモリ 9,740 KB
実行使用メモリ 128,224 KB
最終ジャッジ日時 2023-08-23 14:38:50
合計ジャッジ時間 12,145 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
9,488 KB
testcase_01 AC 16 ms
10,180 KB
testcase_02 AC 88 ms
21,732 KB
testcase_03 AC 1,299 ms
113,496 KB
testcase_04 AC 484 ms
70,508 KB
testcase_05 TLE -
testcase_06 AC 775 ms
98,572 KB
testcase_07 AC 188 ms
36,724 KB
testcase_08 AC 379 ms
59,012 KB
testcase_09 AC 694 ms
96,464 KB
testcase_10 AC 778 ms
110,352 KB
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$n=<>;
if($n>=16){
	print 65535;
	exit;
}
$h{0}=1;
for$a(glob<>){
	%h=map{$k=$_;map{$k|($a=$a*2%65535),1}0..15}keys%h;
}
for(reverse 0..65535){
	if($h{$_}){
		print;
		exit;
	}
}
0