結果

問題 No.1298 OR XOR
ユーザー tailstails
提出日時 2020-11-27 21:23:32
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 87 bytes
コンパイル時間 258 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 4,640 KB
最終ジャッジ日時 2023-10-01 04:30:41
合計ジャッジ時間 1,745 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,528 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 2 ms
4,568 KB
testcase_07 AC 2 ms
4,576 KB
testcase_08 AC 2 ms
4,436 KB
testcase_09 AC 3 ms
4,456 KB
testcase_10 AC 2 ms
4,460 KB
testcase_11 AC 2 ms
4,436 KB
testcase_12 AC 3 ms
4,576 KB
testcase_13 AC 3 ms
4,640 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$n=<>+0;
$a=$n&-$n;
if($a==0){
	print "-1 -1 -1";
}else{
	print $n," ",$n^$a," ",$a;
}
0