結果
問題 | No.739 大事なことなので2度言います |
ユーザー |
![]() |
提出日時 | 2019-06-25 19:01:46 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 50 ms / 2,000 ms |
コード長 | 462 bytes |
コンパイル時間 | 2,814 ms |
コンパイル使用メモリ | 74,464 KB |
実行使用メモリ | 50,528 KB |
最終ジャッジ日時 | 2024-06-23 05:13:52 |
合計ジャッジ時間 | 3,966 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 7 |
ソースコード
import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class Tester {public static void main(String[] args) throws IOException {BufferedReader br = new BufferedReader(new InputStreamReader(System.in));String str = br.readLine();if (str.substring(0, str.length() / 2).equals(str.substring(str.length() / 2, str.length()))) {System.out.println("YES");} else {System.out.println("NO");}}}