結果

問題 No.163 cAPSlOCK
ユーザー kagikakko_karikagikakko_kari
提出日時 2016-06-19 17:45:46
言語 PHP
(8.3.4)
結果
AC  
実行時間 41 ms / 5,000 ms
コード長 161 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 30,816 KB
実行使用メモリ 31,192 KB
最終ジャッジ日時 2024-04-19 13:00:58
合計ジャッジ時間 1,544 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
31,184 KB
testcase_01 AC 41 ms
30,564 KB
testcase_02 AC 38 ms
30,604 KB
testcase_03 AC 37 ms
31,032 KB
testcase_04 AC 37 ms
31,192 KB
testcase_05 AC 35 ms
30,884 KB
testcase_06 AC 34 ms
30,816 KB
testcase_07 AC 34 ms
30,788 KB
testcase_08 AC 33 ms
30,904 KB
testcase_09 AC 33 ms
30,908 KB
testcase_10 AC 32 ms
30,948 KB
testcase_11 AC 33 ms
30,536 KB
testcase_12 AC 33 ms
30,896 KB
testcase_13 AC 34 ms
30,936 KB
testcase_14 AC 37 ms
30,780 KB
testcase_15 AC 34 ms
30,624 KB
testcase_16 AC 34 ms
30,816 KB
testcase_17 AC 34 ms
30,528 KB
testcase_18 AC 33 ms
30,820 KB
testcase_19 AC 34 ms
30,848 KB
testcase_20 AC 34 ms
31,096 KB
testcase_21 AC 33 ms
30,916 KB
testcase_22 AC 35 ms
30,796 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

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