結果
| 問題 |
No.739 大事なことなので2度言います
|
| コンテスト | |
| ユーザー |
nuhehe130
|
| 提出日時 | 2018-10-29 22:22:09 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 553 bytes |
| コンパイル時間 | 3,734 ms |
| コンパイル使用メモリ | 74,536 KB |
| 実行使用メモリ | 41,416 KB |
| 最終ジャッジ日時 | 2024-11-19 09:12:56 |
| 合計ジャッジ時間 | 6,030 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 2 |
| other | AC * 4 WA * 3 |
ソースコード
package test;
import java.util.Scanner;
public class test {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String string = s.nextLine();
char c[] = string.toCharArray();
if (c.length % 2 == 0) {
for (int i = 0; i < c.length / 2; i++) {
if (c[i] != c[i + c.length / 2]) {
System.out.println("NO");
break;
}
else if (i <= c.length / 2) {
System.out.println("YES");
}
}
}
else {
System.out.println("NO");
}
// System.out.println();
s.close();
}
}
nuhehe130