結果
問題 | No.739 大事なことなので2度言います |
ユーザー | wanko |
提出日時 | 2018-11-25 17:45:20 |
言語 | PHP (8.3.4) |
結果 |
AC
|
実行時間 | 8 ms / 2,000 ms |
コード長 | 406 bytes |
コンパイル時間 | 495 ms |
コンパイル使用メモリ | 12,052 KB |
実行使用メモリ | 12,284 KB |
最終ジャッジ日時 | 2023-08-26 05:11:05 |
合計ジャッジ時間 | 1,677 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 7 ms
12,216 KB |
testcase_01 | AC | 7 ms
12,284 KB |
testcase_02 | AC | 7 ms
12,220 KB |
testcase_03 | AC | 8 ms
12,216 KB |
testcase_04 | AC | 7 ms
12,184 KB |
testcase_05 | AC | 7 ms
12,240 KB |
testcase_06 | AC | 7 ms
12,204 KB |
testcase_07 | AC | 7 ms
12,148 KB |
testcase_08 | AC | 7 ms
12,088 KB |
testcase_09 | AC | 7 ms
12,172 KB |
testcase_10 | AC | 7 ms
12,284 KB |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php // Your code here! $string = trim(fgets(STDIN)); if($string_len = strlen($string)%2 === 0) { $length= $string_len = strlen($string)/2; $string_arr = str_split($string,$length); $i = 0; $base_string = $string_arr[0]; $compare_string = $string_arr[1]; if($base_string === $compare_string) { echo "YES"; } else { echo "NO"; } } else { echo "NO"; } ?>