結果

問題 No.85 TVザッピング(1)
ユーザー taktak
提出日時 2018-03-22 12:34:37
言語 F#
(F# 4.0)
結果
AC  
実行時間 82 ms / 5,000 ms
コード長 301 bytes
コンパイル時間 3,207 ms
コンパイル使用メモリ 160,308 KB
実行使用メモリ 24,736 KB
最終ジャッジ日時 2023-09-07 01:29:34
合計ジャッジ時間 6,917 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
22,752 KB
testcase_01 AC 77 ms
24,732 KB
testcase_02 AC 79 ms
22,788 KB
testcase_03 AC 82 ms
24,736 KB
testcase_04 AC 80 ms
22,628 KB
testcase_05 AC 79 ms
22,616 KB
testcase_06 AC 78 ms
24,664 KB
testcase_07 AC 80 ms
22,668 KB
testcase_08 AC 79 ms
22,680 KB
testcase_09 AC 79 ms
22,740 KB
testcase_10 AC 79 ms
24,720 KB
testcase_11 AC 79 ms
24,684 KB
testcase_12 AC 78 ms
22,784 KB
testcase_13 AC 77 ms
20,620 KB
testcase_14 AC 78 ms
22,688 KB
testcase_15 AC 78 ms
22,668 KB
testcase_16 AC 79 ms
22,684 KB
testcase_17 AC 80 ms
22,668 KB
testcase_18 AC 79 ms
24,736 KB
testcase_19 AC 77 ms
22,756 KB
testcase_20 AC 79 ms
20,624 KB
testcase_21 AC 80 ms
22,660 KB
testcase_22 AC 79 ms
24,708 KB
testcase_23 AC 80 ms
22,700 KB
testcase_24 AC 80 ms
22,676 KB
testcase_25 AC 80 ms
22,684 KB
testcase_26 AC 82 ms
22,720 KB
testcase_27 AC 79 ms
22,672 KB
testcase_28 AC 80 ms
22,800 KB
testcase_29 AC 78 ms
22,664 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

open System

let N,M,C =
    let t = Console.ReadLine().Split()
            |> Array.map(int)
    t.[0],t.[1],t.[2]
    
if  (N = 1 && M = 2) || (N = 2 && M = 1) then
    "YES"             
elif N = 1 || M = 1 then
    "NO"
elif N % 2 = 0 || M % 2 = 0 then
    "YES"
else
    "NO"
|> printfn "%s"     
0