結果

問題 No.163 cAPSlOCK
ユーザー ねず
提出日時 2018-01-25 08:42:46
言語 PHP
(843.2)
結果
AC  
実行時間 55 ms / 5,000 ms
コード長 202 bytes
コンパイル時間 242 ms
コンパイル使用メモリ 30,940 KB
実行使用メモリ 31,460 KB
最終ジャッジ日時 2024-12-26 15:09:29
合計ジャッジ時間 2,456 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$str = trim(fgets(STDIN));
for ($i = 0; $i < strlen($str); $i++) {
	if (preg_match('/[a-z]/', $str[$i])) {
		print strtoupper($str[$i]);
	} else {
		print strtolower($str[$i]);
	}
}
print "\n";
?>
0