結果
| 問題 |
No.85 TVザッピング(1)
|
| コンテスト | |
| ユーザー |
tak
|
| 提出日時 | 2018-03-22 12:34:37 |
| 言語 | F# (F# 4.0) |
| 結果 |
AC
|
| 実行時間 | 71 ms / 5,000 ms |
| コード長 | 301 bytes |
| コンパイル時間 | 6,983 ms |
| コンパイル使用メモリ | 190,996 KB |
| 実行使用メモリ | 30,848 KB |
| 最終ジャッジ日時 | 2024-06-24 20:06:22 |
| 合計ジャッジ時間 | 10,147 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (230 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 && 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"
tak