結果

問題 No.1735 C#
ユーザー neko_the_shadowneko_the_shadow
提出日時 2021-11-18 11:54:58
言語 Perl
(5.38.2)
結果
AC  
実行時間 5 ms / 2,000 ms
コード長 196 bytes
コンパイル時間 371 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 5,092 KB
最終ジャッジ日時 2023-08-26 20:32:40
合計ジャッジ時間 1,267 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
5,008 KB
testcase_01 AC 5 ms
4,892 KB
testcase_02 AC 5 ms
4,816 KB
testcase_03 AC 5 ms
4,896 KB
testcase_04 AC 5 ms
4,808 KB
testcase_05 AC 5 ms
4,988 KB
testcase_06 AC 5 ms
5,000 KB
testcase_07 AC 5 ms
5,092 KB
testcase_08 AC 5 ms
4,936 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

use strict;
use warnings;

chomp(my $s = <>);

if (grep /$s/, qw(A C D F G)) {
    print "$s#\n";
} else {
    my $t = "CDEFGABC";
    my $i = index $t, $s;
    print substr($t, $i+1, 1), "\n";
}
0