結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
levia_than_
|
| 提出日時 | 2016-08-24 19:33:55 |
| 言語 | PHP (843.2) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 249 bytes |
| コンパイル時間 | 372 ms |
| コンパイル使用メモリ | 30,932 KB |
| 実行使用メモリ | 31,368 KB |
| 最終ジャッジ日時 | 2024-11-08 02:08:50 |
| 合計ジャッジ時間 | 2,042 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 20 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php
$S = input();
$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;
levia_than_