結果
| 問題 | No.739 大事なことなので2度言います |
| コンテスト | |
| ユーザー |
GodNegoto
|
| 提出日時 | 2019-11-18 16:30:34 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 447 bytes |
| コンパイル時間 | 3,902 ms |
| コンパイル使用メモリ | 75,108 KB |
| 実行使用メモリ | 54,508 KB |
| 最終ジャッジ日時 | 2024-10-01 20:28:49 |
| 合計ジャッジ時間 | 6,370 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 7 |
ソースコード
package algo;
import java.util.Scanner;
public class sample7 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String S = sc.next();
if(S.length() % 2 == 1) {
System.out.println("No");
}
else {
String ss = S.substring(S.length() / 2);
String sss = S.substring(0, S.length() / 2);
if(sss.equals(ss)) {
System.out.println("Yes");
}
else {
System.out.println("No");
}
}
}
}
GodNegoto