結果

問題 No.163 cAPSlOCK
ユーザー sironekotoro
提出日時 2018-11-28 16:16:14
言語 Perl
(5.40.0)
結果
AC  
実行時間 7 ms / 5,000 ms
コード長 257 bytes
コンパイル時間 52 ms
コンパイル使用メモリ 6,016 KB
実行使用メモリ 6,016 KB
最終ジャッジ日時 2024-06-26 22:57:37
合計ジャッジ時間 1,159 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

use strict;
use warnings;
use v5.16;

# my $input = "ABCdef";
my $input = <>;
chomp $input;

my @a = split //, $input;

my $output = "";
for (@a){
    if ($_ =~ /[a-z]/){
        $output .= uc($_);
    }else{
        $output .= lc($_);
    };
}
say $output;
0