結果
問題 | No.739 大事なことなので2度言います |
ユーザー | x87asdf |
提出日時 | 2018-10-15 02:54:05 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 373 bytes |
コンパイル時間 | 3,596 ms |
コンパイル使用メモリ | 73,604 KB |
実行使用メモリ | 41,576 KB |
最終ジャッジ日時 | 2024-04-20 20:22:35 |
合計ジャッジ時間 | 4,704 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 139 ms
41,328 KB |
testcase_01 | WA | - |
testcase_02 | AC | 145 ms
41,480 KB |
testcase_03 | WA | - |
testcase_04 | AC | 139 ms
41,440 KB |
testcase_05 | WA | - |
testcase_06 | AC | 141 ms
41,052 KB |
testcase_07 | AC | 138 ms
41,200 KB |
testcase_08 | AC | 145 ms
41,468 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) == str.substring(length)) { System.out.println("YES"); }else{ System.out.println("NO"); } } }