結果

問題 No.739 大事なことなので2度言います
ユーザー x87asdfx87asdf
提出日時 2018-10-15 02:57:17
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 373 bytes
コンパイル時間 2,350 ms
コンパイル使用メモリ 77,276 KB
実行使用メモリ 41,468 KB
最終ジャッジ日時 2024-04-20 20:22:46
合計ジャッジ時間 3,594 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
41,468 KB
testcase_01 WA -
testcase_02 AC 110 ms
41,300 KB
testcase_03 WA -
testcase_04 AC 109 ms
41,412 KB
testcase_05 WA -
testcase_06 AC 109 ms
41,432 KB
testcase_07 AC 98 ms
41,460 KB
testcase_08 AC 109 ms
41,192 KB
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

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) == str.substring(length)) {
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
    }
}
0