結果

問題 No.536 人工知能
ユーザー motimoti
提出日時 2018-05-17 23:00:58
言語 Perl
(5.38.2)
結果
AC  
実行時間 5 ms / 1,000 ms
コード長 162 bytes
コンパイル時間 47 ms
コンパイル使用メモリ 5,280 KB
実行使用メモリ 5,016 KB
最終ジャッジ日時 2023-09-10 22:42:28
合計ジャッジ時間 857 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
4,788 KB
testcase_01 AC 5 ms
4,764 KB
testcase_02 AC 5 ms
4,904 KB
testcase_03 AC 5 ms
4,760 KB
testcase_04 AC 5 ms
5,016 KB
testcase_05 AC 5 ms
4,900 KB
testcase_06 AC 5 ms
4,744 KB
testcase_07 AC 5 ms
4,904 KB
testcase_08 AC 5 ms
4,740 KB
testcase_09 AC 5 ms
4,984 KB
testcase_10 AC 5 ms
4,900 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

#!/usr/bin/env perl

use strict;
use utf8;
use warnings;

my $s = <>;
chomp $s;
if ($s =~ /ai$/) {
  print((substr$s,0,-2)."AI\n");
} else {
  print$s."-AI\n";
}
0