結果

問題 No.739 大事なことなので2度言います
ユーザー バカらっくバカらっく
提出日時 2022-02-14 10:01:45
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 278 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 12,111 ms
コンパイル使用メモリ 417,592 KB
実行使用メモリ 53,132 KB
最終ジャッジ日時 2023-09-11 16:00:54
合計ジャッジ時間 16,779 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 273 ms
52,812 KB
testcase_01 AC 265 ms
53,132 KB
testcase_02 AC 254 ms
50,312 KB
testcase_03 AC 266 ms
52,792 KB
testcase_04 AC 252 ms
50,412 KB
testcase_05 AC 264 ms
52,740 KB
testcase_06 AC 262 ms
52,740 KB
testcase_07 AC 253 ms
50,408 KB
testcase_08 AC 251 ms
50,352 KB
testcase_09 AC 266 ms
52,880 KB
testcase_10 AC 278 ms
52,824 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    println(if(getAns()) "YES" else "NO")
}

fun getAns():Boolean {
    val s = readLine()!!
    if(s.length % 2 != 0) {
        return false
    }
    return s.take(s.length/2) == s.drop(s.length/2)
}
0