結果
問題 |
No.163 cAPSlOCK
|
ユーザー |
![]() |
提出日時 | 2016-08-24 19:36:05 |
言語 | PHP (843.2) |
結果 |
RE
|
実行時間 | - |
コード長 | 254 bytes |
コンパイル時間 | 379 ms |
コンパイル使用メモリ | 30,944 KB |
実行使用メモリ | 31,764 KB |
最終ジャッジ日時 | 2024-11-08 02:08:52 |
合計ジャッジ時間 | 1,882 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 20 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $S = 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;