結果

問題 No.292 芸名
ユーザー takeya_okinotakeya_okino
提出日時 2017-07-15 15:51:34
言語 PHP
(8.3.4)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 190 ms
コンパイル使用メモリ 30,492 KB
実行使用メモリ 30,872 KB
最終ジャッジ日時 2024-04-16 21:48:05
合計ジャッジ時間 1,322 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
30,488 KB
testcase_01 AC 42 ms
30,832 KB
testcase_02 AC 41 ms
30,544 KB
testcase_03 AC 41 ms
30,252 KB
testcase_04 AC 41 ms
30,680 KB
testcase_05 AC 41 ms
30,872 KB
testcase_06 AC 42 ms
30,556 KB
testcase_07 AC 42 ms
30,680 KB
testcase_08 AC 42 ms
30,488 KB
testcase_09 AC 41 ms
30,684 KB
testcase_10 AC 46 ms
30,324 KB
testcase_11 AC 41 ms
30,532 KB
testcase_12 AC 42 ms
30,428 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$array = explode(" ", trim(fgets(STDIN)));
$S = $array[0];
$t = $array[1];
$u = $array[2];
$ans = "";
for($i = 0; $i < strlen($S); $i++) {
  $s = substr($S, $i, 1);
  if(($i != $t) && ($i != $u)) $ans .= $s;
}
print($ans);
?>
0