結果

問題 No.700 LOVE
ユーザー chike_pluschike_plus
提出日時 2019-03-29 10:38:29
言語 F#
(F# 4.0)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 388 bytes
コンパイル時間 5,172 ms
コンパイル使用メモリ 156,132 KB
実行使用メモリ 24,276 KB
最終ジャッジ日時 2023-09-30 05:40:51
合計ジャッジ時間 6,021 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
22,180 KB
testcase_01 AC 59 ms
20,140 KB
testcase_02 AC 60 ms
22,172 KB
testcase_03 AC 60 ms
22,240 KB
testcase_04 AC 62 ms
22,160 KB
testcase_05 AC 59 ms
22,128 KB
testcase_06 AC 60 ms
22,056 KB
testcase_07 AC 60 ms
22,200 KB
testcase_08 AC 61 ms
22,104 KB
testcase_09 AC 62 ms
24,212 KB
testcase_10 AC 65 ms
22,244 KB
testcase_11 AC 61 ms
22,152 KB
testcase_12 AC 60 ms
22,060 KB
testcase_13 AC 61 ms
24,244 KB
testcase_14 AC 61 ms
24,276 KB
testcase_15 AC 60 ms
22,100 KB
testcase_16 AC 61 ms
22,300 KB
testcase_17 AC 60 ms
22,128 KB
testcase_18 AC 60 ms
22,108 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let ``No.700 LOVE``() =

  let n, m =
    stdin.ReadLine().Split(' ')
    |> Array.map (int)
    |> fun args -> args.[0], args.[1]

  let rec loop = function
  | 1 -> if stdin.ReadLine().Contains("LOVE") then "YES" else "NO"
  | n -> if stdin.ReadLine().Contains("LOVE") then "YES" else loop (n-1)

  if m < 4
     then "NO"
     else loop n 
  |> stdout.WriteLine

  ()
``No.700 LOVE``()
0