結果

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

ソースコード

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, (String.size s) div 2, (String.size s) div 2) = s then "YES"
            else "NO"
    in
        print (ans ^ "\n")  
    end
0