結果

問題 No.791 うし数列
ユーザー dyechidyechi
提出日時 2019-03-28 10:21:13
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 180 bytes
コンパイル時間 1,075 ms
コンパイル使用メモリ 31,072 KB
実行使用メモリ 31,464 KB
最終ジャッジ日時 2024-04-20 17:14:34
合計ジャッジ時間 2,474 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 37 ms
31,324 KB
testcase_02 AC 37 ms
31,332 KB
testcase_03 AC 36 ms
30,916 KB
testcase_04 WA -
testcase_05 AC 36 ms
31,124 KB
testcase_06 AC 37 ms
31,156 KB
testcase_07 AC 37 ms
31,372 KB
testcase_08 WA -
testcase_09 AC 37 ms
31,000 KB
testcase_10 AC 36 ms
31,240 KB
testcase_11 AC 36 ms
31,024 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$s = trim(fgets(STDIN));

if (substr_count($s, "3", 1) == strlen($s) - 1 && strlen($s) < 1) {
    echo substr_count($s, "3", 1).PHP_EOL;
} else {
    echo "-1".PHP_EOL;
}
?>
0