結果

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

ソースコード

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