結果
問題 |
No.2021 Not A but B
|
ユーザー |
|
提出日時 | 2022-12-19 10:42:23 |
言語 | PHP (843.2) |
結果 |
RE
|
実行時間 | - |
コード長 | 293 bytes |
コンパイル時間 | 1,566 ms |
コンパイル使用メモリ | 32,272 KB |
実行使用メモリ | 32,788 KB |
最終ジャッジ日時 | 2024-11-18 00:25:35 |
合計ジャッジ時間 | 2,000 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 4 |
other | RE * 26 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $n = trim(fgets(STDIN)); $word = trim(fgets(STDIN)); $count = 0; for ($i = 0; $i < $n-1; $i++) { $word1 == str_ireplace($word($i),"B",$word); $word2 == str_replace($word($i+1),"B",$word1); if ($word !== $word2) { $count; } } echo $count; ?>