結果

問題 No.1721 [Cherry 3rd Tune N] 麗しきNumber
ユーザー merlinmerlin
提出日時 2021-10-29 21:22:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 54 ms / 2,000 ms
コード長 548 bytes
コンパイル時間 1,974 ms
コンパイル使用メモリ 74,724 KB
実行使用メモリ 37,260 KB
最終ジャッジ日時 2024-04-16 13:55:05
合計ジャッジ時間 4,193 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
36,656 KB
testcase_01 AC 51 ms
37,004 KB
testcase_02 AC 52 ms
36,728 KB
testcase_03 AC 52 ms
36,948 KB
testcase_04 AC 52 ms
37,108 KB
testcase_05 AC 53 ms
37,012 KB
testcase_06 AC 52 ms
37,140 KB
testcase_07 AC 52 ms
37,084 KB
testcase_08 AC 50 ms
36,584 KB
testcase_09 AC 51 ms
37,132 KB
testcase_10 AC 52 ms
37,064 KB
testcase_11 AC 51 ms
36,932 KB
testcase_12 AC 54 ms
36,856 KB
testcase_13 AC 53 ms
36,648 KB
testcase_14 AC 51 ms
36,984 KB
testcase_15 AC 52 ms
37,200 KB
testcase_16 AC 52 ms
36,856 KB
testcase_17 AC 52 ms
37,112 KB
testcase_18 AC 51 ms
36,616 KB
testcase_19 AC 52 ms
37,152 KB
testcase_20 AC 51 ms
36,756 KB
testcase_21 AC 50 ms
36,756 KB
testcase_22 AC 50 ms
37,024 KB
testcase_23 AC 51 ms
36,800 KB
testcase_24 AC 51 ms
36,992 KB
testcase_25 AC 50 ms
36,688 KB
testcase_26 AC 51 ms
37,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;

class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader bu=new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb=new StringBuilder();
        String s=bu.readLine();
        boolean f=false,si=false;
        for(int i=0;i<s.length();i++)
        {
            f|=s.charAt(i)=='4';
            si|=s.charAt(i)=='6';
        }
        if(f && si) sb.append("Beautiful");
        else sb.append("...");
        System.out.println(sb);
    }
}
0