結果
問題 | No.163 cAPSlOCK |
ユーザー |
|
提出日時 | 2019-03-27 18:12:34 |
言語 | PHP (843.2) |
結果 |
AC
|
実行時間 | 42 ms / 5,000 ms |
コード長 | 265 bytes |
コンパイル時間 | 646 ms |
コンパイル使用メモリ | 32,276 KB |
実行使用メモリ | 31,196 KB |
最終ジャッジ日時 | 2024-10-11 02:24:03 |
合計ジャッジ時間 | 2,445 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $s = trim(fgets(STDIN)); $array = str_split($s); $i=0; while ($i < strlen($s)) { if (ctype_upper($array[$i]) == TRUE) { $array[$i] = strtolower($array[$i]); } else { $array[$i] = strtoupper($array[$i]); } $i++; } echo implode("", $array).PHP_EOL; ?>