結果

問題 No.739 大事なことなので2度言います
ユーザー x87asdfx87asdf
提出日時 2018-10-15 03:01:48
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 2,000 ms
コード長 381 bytes
コンパイル時間 2,436 ms
コンパイル使用メモリ 74,644 KB
実行使用メモリ 54,180 KB
最終ジャッジ日時 2024-04-30 20:05:08
合計ジャッジ時間 4,599 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
53,984 KB
testcase_01 AC 124 ms
54,116 KB
testcase_02 AC 123 ms
54,000 KB
testcase_03 AC 133 ms
54,096 KB
testcase_04 AC 126 ms
53,700 KB
testcase_05 AC 126 ms
53,808 KB
testcase_06 AC 122 ms
53,852 KB
testcase_07 AC 125 ms
54,108 KB
testcase_08 AC 128 ms
53,912 KB
testcase_09 AC 123 ms
54,048 KB
testcase_10 AC 123 ms
54,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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

        if( str.substring(0, length).equals(str.substring(length)) ) {
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
    }
}
0