結果
問題 |
No.423 ハムスター語初級(数詞)
|
ユーザー |
![]() |
提出日時 | 2018-10-21 09:10:13 |
言語 | PHP (843.2) |
結果 |
AC
|
実行時間 | 43 ms / 2,000 ms |
コード長 | 303 bytes |
コンパイル時間 | 2,862 ms |
コンパイル使用メモリ | 32,144 KB |
実行使用メモリ | 31,396 KB |
最終ジャッジ日時 | 2024-11-19 03:16:29 |
合計ジャッジ時間 | 1,148 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 9 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $input = trim(fgets(STDIN)); $length = strlen($input); #print($length . $input[0] . $input[1] . $input[2] . "\n"); if($length == 3 && $input[0] == "h" && $input[1] == "a" && $input[2] == "m"){ print("ham" . "\n"); return; } print($input . "ham" . "\n"); ?>