結果

問題 No.85 TVザッピング(1)
ユーザー taktak
提出日時 2018-03-22 12:30:03
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 328 bytes
コンパイル時間 4,644 ms
コンパイル使用メモリ 164,328 KB
実行使用メモリ 24,716 KB
最終ジャッジ日時 2023-09-07 01:29:26
合計ジャッジ時間 6,995 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
24,608 KB
testcase_01 AC 80 ms
22,692 KB
testcase_02 AC 81 ms
22,664 KB
testcase_03 AC 81 ms
22,816 KB
testcase_04 AC 80 ms
20,820 KB
testcase_05 AC 80 ms
24,556 KB
testcase_06 AC 81 ms
22,620 KB
testcase_07 AC 81 ms
22,624 KB
testcase_08 AC 82 ms
22,540 KB
testcase_09 AC 80 ms
22,672 KB
testcase_10 AC 80 ms
22,744 KB
testcase_11 AC 81 ms
24,516 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 81 ms
22,752 KB
testcase_17 AC 82 ms
24,492 KB
testcase_18 AC 80 ms
22,772 KB
testcase_19 AC 80 ms
22,620 KB
testcase_20 AC 82 ms
24,608 KB
testcase_21 AC 82 ms
22,692 KB
testcase_22 AC 81 ms
22,676 KB
testcase_23 AC 80 ms
22,632 KB
testcase_24 AC 83 ms
22,792 KB
testcase_25 AC 82 ms
24,652 KB
testcase_26 AC 82 ms
22,808 KB
testcase_27 AC 81 ms
22,700 KB
testcase_28 AC 81 ms
22,804 KB
testcase_29 AC 83 ms
22,692 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 && (C = 1 || C = M) then   
    "YES"
elif M = 1 && (C = 1 || C = N) then
    "TES"
elif N   = 1 || M   = 1 then 
    "NO"
elif N%2 = 0 || M%2 = 0 then
    "YES"
else
    "NO"
|> printfn "%s"     
0