結果
| 問題 | No.163 cAPSlOCK |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-12 20:37:00 |
| 言語 | PHP (8.5.9) |
| 結果 |
AC
不安定
|
| 実行時間 | 33 ms / 5,000 ms |
| + 130µs | |
| コード長 | 346 bytes |
| 記録 | |
| コンパイル時間 | 2,718 ms |
| コンパイル使用メモリ | 37,264 KB |
| 実行使用メモリ | 37,392 KB |
| 最終ジャッジ日時 | 2026-08-26 12:38:30 |
| 合計ジャッジ時間 | 4,284 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
?>