結果

問題 No.163 cAPSlOCK
ユーザー ieneko18ieneko18
提出日時 2016-11-28 04:37:25
言語 PHP
(8.3.4)
結果
AC  
実行時間 45 ms / 5,000 ms
コード長 209 bytes
コンパイル時間 3,787 ms
コンパイル使用メモリ 31,108 KB
実行使用メモリ 31,312 KB
最終ジャッジ日時 2024-05-05 14:29:59
合計ジャッジ時間 1,846 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
30,852 KB
testcase_01 AC 44 ms
31,080 KB
testcase_02 AC 45 ms
30,872 KB
testcase_03 AC 44 ms
30,976 KB
testcase_04 AC 43 ms
31,300 KB
testcase_05 AC 45 ms
30,864 KB
testcase_06 AC 40 ms
31,036 KB
testcase_07 AC 40 ms
30,964 KB
testcase_08 AC 39 ms
31,312 KB
testcase_09 AC 40 ms
31,252 KB
testcase_10 AC 40 ms
31,188 KB
testcase_11 AC 40 ms
31,076 KB
testcase_12 AC 40 ms
30,964 KB
testcase_13 AC 40 ms
30,968 KB
testcase_14 AC 40 ms
31,096 KB
testcase_15 AC 40 ms
30,964 KB
testcase_16 AC 40 ms
31,256 KB
testcase_17 AC 39 ms
31,104 KB
testcase_18 AC 40 ms
31,072 KB
testcase_19 AC 40 ms
31,060 KB
testcase_20 AC 39 ms
31,144 KB
testcase_21 AC 40 ms
31,060 KB
testcase_22 AC 39 ms
31,192 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$s=str_split(trim(fgets(STDIN)));
$v="";
for($i=0;$i<count($s);$i++){
    if(ctype_lower($s[$i])){
        $v=$v.strtoupper($s[$i]);
    }else{
        $v=$v.strtolower($s[$i]);
    }
}
echo $v."\n";
?>
0