結果

問題 No.423 ハムスター語初級(数詞)
ユーザー leos_caraxleos_carax
提出日時 2016-10-23 14:40:54
言語 PHP
(8.3.4)
結果
AC  
実行時間 13 ms / 2,000 ms
コード長 263 bytes
コンパイル時間 1,252 ms
コンパイル使用メモリ 18,320 KB
実行使用メモリ 18,920 KB
最終ジャッジ日時 2023-08-15 17:56:50
合計ジャッジ時間 2,127 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
18,872 KB
testcase_01 AC 13 ms
18,792 KB
testcase_02 AC 13 ms
18,904 KB
testcase_03 AC 12 ms
18,840 KB
testcase_04 AC 12 ms
18,864 KB
testcase_05 AC 13 ms
18,692 KB
testcase_06 AC 12 ms
18,920 KB
testcase_07 AC 12 ms
18,848 KB
testcase_08 AC 12 ms
18,768 KB
testcase_09 AC 12 ms
18,800 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
// Here your code !
$hum = trim(fgets(STDIN));
$hum = str_replace("hamu","1",$hum);
$hum = str_replace("ham","0",$hum);
$num = bindec($hum) * 2;
$ans = decbin($num);
$ans = str_replace("1","hamu",$ans);
$ans = str_replace("0","ham",$ans);
echo $ans."\n";
?>
0