結果
問題 | No.85 TVザッピング(1) |
ユーザー |
![]() |
提出日時 | 2018-03-22 12:30:03 |
言語 | F# (F# 4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 328 bytes |
コンパイル時間 | 10,952 ms |
コンパイル使用メモリ | 191,516 KB |
実行使用メモリ | 31,104 KB |
最終ジャッジ日時 | 2024-06-24 20:06:11 |
合計ジャッジ時間 | 10,223 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 WA * 4 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (251 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
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"