結果
問題 | No.739 大事なことなので2度言います |
ユーザー | N.Matsumoto |
提出日時 | 2019-09-22 09:11:41 |
言語 | Java19 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 460 bytes |
コンパイル時間 | 2,256 ms |
コンパイル使用メモリ | 74,304 KB |
実行使用メモリ | 57,676 KB |
最終ジャッジ日時 | 2023-10-19 07:06:05 |
合計ジャッジ時間 | 4,537 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 135 ms
57,308 KB |
testcase_01 | WA | - |
testcase_02 | AC | 134 ms
55,504 KB |
testcase_03 | WA | - |
testcase_04 | AC | 132 ms
57,364 KB |
testcase_05 | WA | - |
testcase_06 | AC | 135 ms
57,340 KB |
testcase_07 | AC | 134 ms
57,676 KB |
testcase_08 | AC | 135 ms
57,556 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
ソースコード
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).equals(str.substring(str.length() / 2 + 1))) { System.out.println("YES"); } else { System.out.println("NO"); } } }