結果

問題 No.423 ハムスター語初級(数詞)
ユーザー beatdjambeatdjam
提出日時 2016-09-30 13:21:18
言語 PHP
(8.3.4)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 319 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 18,744 KB
実行使用メモリ 18,684 KB
最終ジャッジ日時 2023-08-13 15:22:30
合計ジャッジ時間 998 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
18,584 KB
testcase_01 AC 15 ms
18,640 KB
testcase_02 AC 15 ms
18,572 KB
testcase_03 AC 15 ms
18,532 KB
testcase_04 AC 16 ms
18,556 KB
testcase_05 AC 16 ms
18,528 KB
testcase_06 AC 16 ms
18,580 KB
testcase_07 AC 16 ms
18,248 KB
testcase_08 AC 16 ms
18,536 KB
testcase_09 AC 16 ms
18,684 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$input_lines = trim(fgets(STDIN));
$tmp = str_replace(array("\r\n","\r","\n"), "", $input_lines);

$tmp = str_replace("hamu","1",$tmp);
$tmp = str_replace("ham","0",$tmp);
$tmp = decbin(bindec ($tmp) * 2);
$tmp = str_replace("1","hamu",$tmp);
$tmp = str_replace("0", "ham",$tmp);
echo $tmp;
// your code goes here
0