結果

問題 No.739 大事なことなので2度言います
コンテスト
ユーザー tanson
提出日時 2025-11-19 00:27:32
言語 Standard ML
(MLton 20210117)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 524 bytes
コンパイル時間 5,822 ms
コンパイル使用メモリ 686,968 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-11-19 00:27:56
合計ジャッジ時間 4,705 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

fun readStr () =
    let
        fun scan reader stream = SOME (StringCvt.splitl (not o Char.isSpace) reader (StringCvt.skipWS reader stream))
    in
        valOf (TextIO.scanStream scan TextIO.stdIn)
    end


val () =
    let
        val s = readStr ()

        val ans =
            if (String.size s) mod 2 <> 0 then "NO"
            else if String.substring (s, 0, (String.size s) div 2) ^ String.substring (s, 0, (String.size s) div 2) = s then "YES"
            else "NO"
    in
        print (ans ^ "\n")  
    end
0