結果

問題 No.400 鏡
ユーザー papinianuspapinianus
提出日時 2016-07-25 12:22:10
言語 PHP
(8.3.4)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 187 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 18,720 KB
実行使用メモリ 18,964 KB
最終ジャッジ日時 2023-08-06 13:12:12
合計ジャッジ時間 1,128 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
18,812 KB
testcase_01 AC 17 ms
18,732 KB
testcase_02 AC 16 ms
18,772 KB
testcase_03 AC 16 ms
18,868 KB
testcase_04 AC 16 ms
18,848 KB
testcase_05 AC 16 ms
18,820 KB
testcase_06 AC 15 ms
18,860 KB
testcase_07 AC 16 ms
18,964 KB
testcase_08 AC 16 ms
18,816 KB
testcase_09 AC 16 ms
18,792 KB
testcase_10 AC 16 ms
18,848 KB
testcase_11 AC 16 ms
18,752 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$str = trim(fgets(STDIN));
$len = strlen($str);
for($i = strlen($str); $i ; $i--){
    if($str[$i-1] == '>') {
        echo '<';
    } else {
        echo '>';
    }
}
echo PHP_EOL;
0