結果
問題 |
No.163 cAPSlOCK
|
ユーザー |
![]() |
提出日時 | 2016-08-24 19:38:22 |
言語 | PHP (843.2) |
結果 |
RE
|
実行時間 | - |
コード長 | 260 bytes |
コンパイル時間 | 2,800 ms |
コンパイル使用メモリ | 30,384 KB |
実行使用メモリ | 31,444 KB |
最終ジャッジ日時 | 2024-11-08 02:09:17 |
合計ジャッジ時間 | 1,929 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 20 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $S = trim(fgets(STDIN)); $str = ''; $arr_S = str_split($S); foreach($arr_S as $val_S){ if(ctype_upper($val_S)): $str += strtolower($val_S); elseif(ctype_lower($val_S)): $str += strtoupper($val_S); else: $str += $val_S; endif; } echo $str;