結果
問題 | No.739 大事なことなので2度言います |
ユーザー | seaside0002 |
提出日時 | 2019-12-21 15:11:30 |
言語 | PHP (8.3.4) |
結果 |
AC
|
実行時間 | 8 ms / 2,000 ms |
コード長 | 449 bytes |
コンパイル時間 | 1,138 ms |
コンパイル使用メモリ | 11,940 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2023-09-26 16:45:53 |
合計ジャッジ時間 | 1,646 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 8 ms
12,128 KB |
testcase_01 | AC | 8 ms
12,220 KB |
testcase_02 | AC | 7 ms
12,268 KB |
testcase_03 | AC | 8 ms
12,168 KB |
testcase_04 | AC | 7 ms
12,208 KB |
testcase_05 | AC | 8 ms
12,164 KB |
testcase_06 | AC | 7 ms
12,112 KB |
testcase_07 | AC | 7 ms
12,288 KB |
testcase_08 | AC | 8 ms
12,228 KB |
testcase_09 | AC | 8 ms
12,208 KB |
testcase_10 | AC | 7 ms
12,216 KB |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $yukiVoice = trim(fgets(STDIN)); $voiceLen = strlen($yukiVoice); $ans; isTwice($voiceLen); $ans = isIteration($yukiVoice); echo $ans; function isTwice($vl){ if ($vl % 2 == 0){ }else{ die('NO'); } } function isIteration($yv){ $halfPoint = strlen($yv) / 2; $firstHalf = substr($yv, 0, $halfPoint); $latterHalf = substr($yv, $halfPoint, $halfPoint); if ($firstHalf == $latterHalf){ return 'YES'; }else{ return 'NO'; } }