結果
| 問題 |
No.739 大事なことなので2度言います
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-22 09:12:07 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 460 bytes |
| コンパイル時間 | 2,066 ms |
| コンパイル使用メモリ | 74,624 KB |
| 実行使用メモリ | 54,296 KB |
| 最終ジャッジ日時 | 2024-09-19 03:26:13 |
| 合計ジャッジ時間 | 4,132 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 2 |
| other | AC * 4 WA * 3 |
ソースコード
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");
}
}
}