結果

問題 No.739 大事なことなので2度言います
ユーザー N.MatsumotoN.Matsumoto
提出日時 2019-09-22 09:12:07
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 460 bytes
コンパイル時間 2,253 ms
コンパイル使用メモリ 74,952 KB
実行使用メモリ 57,692 KB
最終ジャッジ日時 2023-10-19 07:06:24
合計ジャッジ時間 4,741 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
57,424 KB
testcase_01 WA -
testcase_02 AC 126 ms
57,124 KB
testcase_03 WA -
testcase_04 AC 126 ms
57,088 KB
testcase_05 WA -
testcase_06 AC 127 ms
57,368 KB
testcase_07 AC 130 ms
57,312 KB
testcase_08 AC 130 ms
57,560 KB
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();

        if (!(str.length() % 2 == 0)) {
            System.out.println("NO");
        } else if (str.substring(0, str.length() / 2 - 1).equals(str.substring(str.length() / 2))) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}
0