結果
問題 | No.739 大事なことなので2度言います |
ユーザー | 情報学生 |
提出日時 | 2019-08-25 10:17:19 |
言語 | Haskell (9.8.2) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 442 bytes |
コンパイル時間 | 8,138 ms |
コンパイル使用メモリ | 165,448 KB |
実行使用メモリ | 7,304 KB |
最終ジャッジ日時 | 2023-08-05 23:06:53 |
合計ジャッジ時間 | 7,942 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 3 ms
7,228 KB |
testcase_01 | AC | 3 ms
7,288 KB |
testcase_02 | AC | 3 ms
7,148 KB |
testcase_03 | AC | 2 ms
7,252 KB |
testcase_04 | AC | 2 ms
7,236 KB |
testcase_05 | AC | 2 ms
7,232 KB |
testcase_06 | AC | 2 ms
7,304 KB |
testcase_07 | AC | 3 ms
7,240 KB |
testcase_08 | AC | 2 ms
7,156 KB |
testcase_09 | AC | 2 ms
7,264 KB |
testcase_10 | AC | 2 ms
7,220 KB |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
{-# LANGUAGE OverloadedStrings #-} import Data.ByteString.Char8 (ByteString) import qualified Data.ByteString.Char8 as B main :: IO () main = do s <- B.getLine let k = if odd $ B.length s then "NO" :: ByteString else f s B.putStrLn k f :: ByteString -> ByteString f bs = if a == b then ("YES" :: ByteString) else ("NO" :: ByteString) where (a, b) = B.splitAt (B.length bs `div` 2) bs