結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-12 20:37:00 |
| 言語 | PHP (843.2) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 5,000 ms |
| コード長 | 346 bytes |
| コンパイル時間 | 3,529 ms |
| コンパイル使用メモリ | 32,020 KB |
| 実行使用メモリ | 32,656 KB |
| 最終ジャッジ日時 | 2024-09-13 21:08:43 |
| 合計ジャッジ時間 | 5,310 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php
$input = trim(fgets(STDIN));
$output = array();
for($i = 0; $i < strlen($input); $i++) {
if (ctype_upper($input[$i]) == true) {
$output[] = strtolower($input[$i]);
} else {
$output[] = strtoupper($input[$i]);
}
}
$ans = implode("",$output);
echo $ans;
?>