結果

問題 No.1721 [Cherry 3rd Tune N] 麗しきNumber
ユーザー SKSK
提出日時 2022-12-20 14:14:00
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 261 bytes
コンパイル時間 68 ms
コンパイル使用メモリ 30,628 KB
実行使用メモリ 31,420 KB
最終ジャッジ日時 2024-04-29 02:48:16
合計ジャッジ時間 2,242 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 41 ms
31,120 KB
testcase_02 WA -
testcase_03 AC 41 ms
30,932 KB
testcase_04 AC 40 ms
30,956 KB
testcase_05 WA -
testcase_06 AC 40 ms
31,012 KB
testcase_07 WA -
testcase_08 AC 40 ms
31,116 KB
testcase_09 AC 41 ms
31,420 KB
testcase_10 AC 40 ms
31,080 KB
testcase_11 WA -
testcase_12 AC 41 ms
30,880 KB
testcase_13 AC 41 ms
30,876 KB
testcase_14 AC 41 ms
31,104 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 41 ms
30,912 KB
testcase_18 WA -
testcase_19 AC 41 ms
31,204 KB
testcase_20 AC 41 ms
31,076 KB
testcase_21 WA -
testcase_22 AC 40 ms
31,308 KB
testcase_23 AC 40 ms
31,144 KB
testcase_24 AC 40 ms
31,192 KB
testcase_25 AC 40 ms
31,292 KB
testcase_26 AC 41 ms
30,900 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$n = trim(fgets(STDIN));
$m = strlen($n);
$a = 0;
$b = 0;
for ($i = 0; $i < $m; $i++) {
     if ($n[$i] == 4) {
         $a++;
     }elseif ($n[$i] == 6) {
         $b++;
     }
}

if ($a > 1 && $b > 1) {
    echo "Beautiful";
}else {
    echo "...";
}
?>
0