結果
問題 | No.739 大事なことなので2度言います |
ユーザー | x87asdf |
提出日時 | 2018-10-15 02:56:06 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 375 bytes |
コンパイル時間 | 4,516 ms |
コンパイル使用メモリ | 74,028 KB |
実行使用メモリ | 54,112 KB |
最終ジャッジ日時 | 2024-04-20 20:22:41 |
合計ジャッジ時間 | 4,888 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 111 ms
41,664 KB |
testcase_01 | WA | - |
testcase_02 | AC | 106 ms
41,420 KB |
testcase_03 | WA | - |
testcase_04 | AC | 105 ms
41,308 KB |
testcase_05 | WA | - |
testcase_06 | AC | 108 ms
41,200 KB |
testcase_07 | AC | 101 ms
41,576 KB |
testcase_08 | AC | 94 ms
41,228 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); int length = str.length()/2; if(str.substring(0, length+1) == str.substring(length)) { System.out.println("YES"); }else{ System.out.println("NO"); } } }