結果

問題 No.739 大事なことなので2度言います
ユーザー taktak
提出日時 2019-02-03 16:22:01
言語 F#
(F# 4.0)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 235 bytes
コンパイル時間 4,999 ms
コンパイル使用メモリ 153,732 KB
実行使用メモリ 23,656 KB
最終ジャッジ日時 2023-08-22 17:09:52
合計ジャッジ時間 6,211 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
21,552 KB
testcase_01 AC 49 ms
21,628 KB
testcase_02 AC 48 ms
21,580 KB
testcase_03 AC 48 ms
19,644 KB
testcase_04 AC 48 ms
21,456 KB
testcase_05 AC 48 ms
21,512 KB
testcase_06 AC 48 ms
21,464 KB
testcase_07 AC 49 ms
21,568 KB
testcase_08 AC 49 ms
19,504 KB
testcase_09 AC 49 ms
23,656 KB
testcase_10 AC 49 ms
21,596 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let f (str: string): bool =
    let len = str.Length
    let head = str.Substring(0, len/2)
    let tail = str.Substring(len/2)
    head = tail

let S = stdin.ReadLine()

f S 
|> function | true -> "YES" | _ -> "NO"
|> stdout.WriteLine
0