結果
問題 | No.739 大事なことなので2度言います |
ユーザー |
![]() |
提出日時 | 2019-08-02 12:01:24 |
言語 | Haskell (9.10.1) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 237 bytes |
コンパイル時間 | 1,705 ms |
コンパイル使用メモリ | 172,928 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-05 08:04:57 |
合計ジャッジ時間 | 1,639 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 7 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
main::IO()main = getLine >>= solvesolve::String->IO()solve s| odd $ length s = putStrLn "NO"| otherwise = if (==) s $ take (length s) $ cycle (take ((length s) `div` 2) s) then putStrLn "YES" else putStrLn "NO"