結果

問題 No.581 XOR
ユーザー neko_the_shadowneko_the_shadow
提出日時 2021-09-01 10:40:38
言語 Perl
(5.38.2)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 317 bytes
コンパイル時間 347 ms
コンパイル使用メモリ 5,292 KB
実行使用メモリ 5,184 KB
最終ジャッジ日時 2023-08-18 06:58:19
合計ジャッジ時間 1,288 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
4,920 KB
testcase_01 AC 5 ms
4,916 KB
testcase_02 AC 5 ms
4,912 KB
testcase_03 AC 6 ms
5,028 KB
testcase_04 AC 6 ms
5,184 KB
testcase_05 AC 5 ms
4,892 KB
testcase_06 AC 5 ms
4,916 KB
testcase_07 AC 5 ms
5,028 KB
testcase_08 AC 5 ms
4,892 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
The bitwise feature is experimental at Main.pl line 21.
Main.pl syntax OK

ソースコード

diff #

use strict;
use warnings;
use feature qw/state bitwise/;

sub output {
    my $line = join " ", @_;
    print "$line\n";
}

sub input {
    state @que;
    if (@que == 0) {
        chomp(my $line = <>);
        push @que, split / /, $line;
    }
    return shift @que;
}

my $a = input;
my $b = input;
output $a ^ $b;
0