結果
| 問題 | 
                            No.739 大事なことなので2度言います
                             | 
                    
| コンテスト | |
| ユーザー | 
                             GodNegoto
                         | 
                    
| 提出日時 | 2019-11-18 16:33:17 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 446 bytes | 
| コンパイル時間 | 3,584 ms | 
| コンパイル使用メモリ | 77,412 KB | 
| 実行使用メモリ | 54,560 KB | 
| 最終ジャッジ日時 | 2024-10-01 20:31:44 | 
| 合計ジャッジ時間 | 5,600 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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