結果

問題 No.543 命題
ユーザー neko_the_shadowneko_the_shadow
提出日時 2021-09-01 10:35:58
言語 Perl
(5.38.2)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 446 bytes
コンパイル時間 326 ms
コンパイル使用メモリ 5,480 KB
実行使用メモリ 5,208 KB
最終ジャッジ日時 2023-08-18 06:51:16
合計ジャッジ時間 841 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
4,976 KB
testcase_01 AC 6 ms
4,896 KB
testcase_02 AC 6 ms
5,032 KB
testcase_03 AC 6 ms
5,208 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

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

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;
}


# PとPの対偶、Pの逆とPの裏ではそれぞれ真偽が一致する
my $a = input; # P
my $b = input; # Pの逆
my $c = $b; # Pの裏
my $d = $a; # Pの待遇
output $c, $d;
0