結果

問題 No.739 大事なことなので2度言います
ユーザー Pump0129Pump0129
提出日時 2018-11-27 23:43:15
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 470 bytes
コンパイル時間 1,975 ms
コンパイル使用メモリ 71,624 KB
実行使用メモリ 56,220 KB
最終ジャッジ日時 2023-09-07 00:53:47
合計ジャッジ時間 4,672 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,896 KB
testcase_01 AC 118 ms
55,960 KB
testcase_02 AC 118 ms
56,220 KB
testcase_03 AC 117 ms
55,692 KB
testcase_04 AC 116 ms
55,700 KB
testcase_05 AC 116 ms
55,836 KB
testcase_06 AC 119 ms
55,936 KB
testcase_07 AC 118 ms
55,788 KB
testcase_08 AC 117 ms
55,844 KB
testcase_09 AC 118 ms
55,720 KB
testcase_10 AC 117 ms
56,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package net.ipipip0129.yukicoder.No739;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String scan_str = scan.nextLine();

        boolean ans = scan_str.length() % 2 == 0 &&
                scan_str.substring(0, scan_str.length() / 2)
                .equalsIgnoreCase(scan_str.substring(scan_str.length() / 2));
        System.out.println(ans? "YES" : "NO");
    }
}
0