結果

問題 No.739 大事なことなので2度言います
ユーザー とばりとばり
提出日時 2018-11-30 14:27:20
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 914 ms / 2,000 ms
コード長 265 bytes
コンパイル時間 8,756 ms
コンパイル使用メモリ 245,532 KB
実行使用メモリ 61,560 KB
最終ジャッジ日時 2023-09-13 20:48:37
合計ジャッジ時間 18,930 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 910 ms
61,180 KB
testcase_01 AC 914 ms
61,340 KB
testcase_02 AC 900 ms
61,352 KB
testcase_03 AC 898 ms
61,560 KB
testcase_04 AC 891 ms
61,072 KB
testcase_05 AC 899 ms
61,288 KB
testcase_06 AC 901 ms
61,400 KB
testcase_07 AC 894 ms
61,128 KB
testcase_08 AC 891 ms
61,116 KB
testcase_09 AC 900 ms
61,240 KB
testcase_10 AC 913 ms
61,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

object Main {
  def main(args: Array[String]): Unit = {
    import scala.io.StdIn.readLine

    val s = readLine()
    val n = s.length

    if (n % 2 == 0 && s.take(n / 2) == s.takeRight(n / 2)) {
      println("YES");
    } else {
      println("NO");
    }
  }
}
0