結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー tailstails
提出日時 2015-04-16 23:59:50
言語 Perl
(5.38.2)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 155 bytes
コンパイル時間 265 ms
コンパイル使用メモリ 5,292 KB
実行使用メモリ 5,560 KB
最終ジャッジ日時 2023-09-11 11:01:10
合計ジャッジ時間 1,332 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,580 KB
testcase_01 AC 3 ms
4,656 KB
testcase_02 AC 3 ms
4,772 KB
testcase_03 AC 3 ms
4,648 KB
testcase_04 AC 3 ms
4,584 KB
testcase_05 AC 2 ms
4,596 KB
testcase_06 AC 3 ms
4,624 KB
testcase_07 AC 11 ms
5,560 KB
testcase_08 AC 11 ms
5,320 KB
testcase_09 AC 8 ms
5,068 KB
testcase_10 AC 9 ms
5,392 KB
testcase_11 AC 12 ms
5,520 KB
testcase_12 AC 3 ms
4,584 KB
testcase_13 AC 2 ms
4,600 KB
testcase_14 AC 9 ms
5,412 KB
testcase_15 AC 12 ms
5,424 KB
testcase_16 AC 3 ms
4,508 KB
testcase_17 AC 5 ms
4,736 KB
testcase_18 AC 10 ms
5,304 KB
testcase_19 AC 4 ms
4,596 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>;
$/=$";
@a=<>;
for$i(0..14){
    $f=0;
    for(@a){
        if($_&1<<$i){
            $f=$_,$c++if!$f;
            $_^=$f;
        }
    }
}
print 2**$c
0