結果

問題 No.791 うし数列
ユーザー ayaaya
提出日時 2019-08-06 11:31:35
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 163 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 18,696 KB
実行使用メモリ 19,124 KB
最終ジャッジ日時 2023-09-25 17:39:21
合計ジャッジ時間 1,452 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
18,720 KB
testcase_01 AC 16 ms
18,744 KB
testcase_02 AC 15 ms
18,916 KB
testcase_03 AC 16 ms
18,880 KB
testcase_04 AC 15 ms
18,872 KB
testcase_05 AC 16 ms
18,748 KB
testcase_06 AC 16 ms
18,960 KB
testcase_07 AC 15 ms
18,956 KB
testcase_08 WA -
testcase_09 AC 15 ms
19,060 KB
testcase_10 AC 15 ms
18,728 KB
testcase_11 AC 16 ms
18,968 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
$inputNum=(int)trim(fgets(STDIN));
$exit=preg_match("/13+$/",$inputNum);
$cnt=preg_match_all("/3/",$inputNum);
if($exit){
  echo $cnt;
}else{
  echo "-1";
}
0