結果
問題 | No.1735 C# |
ユーザー |
![]() |
提出日時 | 2021-11-18 11:54:58 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 7 ms / 2,000 ms |
コード長 | 196 bytes |
コンパイル時間 | 496 ms |
コンパイル使用メモリ | 5,632 KB |
実行使用メモリ | 5,632 KB |
最終ジャッジ日時 | 2024-12-25 22:38:09 |
合計ジャッジ時間 | 1,406 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
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"; }