結果

問題 No.739 大事なことなので2度言います
ユーザー DRDSISNDRDSISN
提出日時 2018-12-03 01:17:35
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 895 bytes
コンパイル時間 3,963 ms
コンパイル使用メモリ 74,724 KB
実行使用メモリ 57,964 KB
最終ジャッジ日時 2023-09-13 21:02:42
合計ジャッジ時間 6,189 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 120 ms
56,184 KB
testcase_03 WA -
testcase_04 AC 120 ms
55,764 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 121 ms
54,172 KB
testcase_08 AC 123 ms
56,164 KB
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.Scanner;

public class yuki3 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String A = sc.nextLine();
		
		
		if(A.length() % 2 == 0) {
			String[] Bc = A.split("");
			String[] Box1 = new String[A.length()/2];
			String[] Box2 = new String[A.length()/2];
			
			for(int i =0 ; i < A.length()/2;i++) {
				Box1[i]=Bc[i];
			}
			
			for(int i =0 ; i < Box1.length;i++) {
				System.out.println(Box1[i]);
			}
			
			
			for(int i = A.length()/2 ; i < A.length();i++) {
				Box2[i-A.length()/2]=Bc[i];
			}
			
			for(int i =0 ; i < Box2.length;i++) {
				System.out.println(Box2[i]);
			}
			
			if( Arrays.equals(Box1, Box2)) {
				System.out.println("YES");
			}else {
				System.out.println("NO");
			}
		
		}else {
			System.out.println("NO");
		}
	}
}
0