結果

問題 No.163 cAPSlOCK
ユーザー ieneko18ieneko18
提出日時 2016-11-28 04:48:33
言語 PHP
(8.3.4)
結果
AC  
実行時間 37 ms / 5,000 ms
コード長 183 bytes
コンパイル時間 144 ms
コンパイル使用メモリ 32,272 KB
実行使用メモリ 31,452 KB
最終ジャッジ日時 2024-05-05 14:30:13
合計ジャッジ時間 1,857 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
31,316 KB
testcase_01 AC 34 ms
31,164 KB
testcase_02 AC 34 ms
31,140 KB
testcase_03 AC 36 ms
31,172 KB
testcase_04 AC 34 ms
31,284 KB
testcase_05 AC 33 ms
31,416 KB
testcase_06 AC 34 ms
31,024 KB
testcase_07 AC 34 ms
30,984 KB
testcase_08 AC 34 ms
31,040 KB
testcase_09 AC 34 ms
30,952 KB
testcase_10 AC 34 ms
30,884 KB
testcase_11 AC 34 ms
31,352 KB
testcase_12 AC 33 ms
31,096 KB
testcase_13 AC 34 ms
31,452 KB
testcase_14 AC 34 ms
31,228 KB
testcase_15 AC 34 ms
30,964 KB
testcase_16 AC 34 ms
30,912 KB
testcase_17 AC 33 ms
31,092 KB
testcase_18 AC 34 ms
31,376 KB
testcase_19 AC 35 ms
31,012 KB
testcase_20 AC 36 ms
31,016 KB
testcase_21 AC 37 ms
31,192 KB
testcase_22 AC 35 ms
31,012 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

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