結果
問題 | No.795 Restrictions!!!!!!!!!!!!!! |
ユーザー |
![]() |
提出日時 | 2019-03-29 05:48:04 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 58 ms / 2,000 ms |
コード長 | 387 bytes |
コンパイル時間 | 16,757 ms |
コンパイル使用メモリ | 203,388 KB |
実行使用メモリ | 29,696 KB |
最終ジャッジ日時 | 2024-11-06 12:39:06 |
合計ジャッジ時間 | 19,027 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (717 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) /home/judge/data/code/Main.fs(6,9): warning FS0025: この式のパターン マッチが不完全です たとえば、値 '2' はパターンに含まれないケースを示す可能性があります。 [/home/judge/data/code/main.fsproj] main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
let ``No.795 Restrictions!!!!!!!!!!!!!!``() = let n = stdin.ReadLine() |> fun arg -> arg.Substring( arg.Length-1 ) |> int let m = stdin.ReadLine() |> fun arg -> arg.Substring( arg.Length-2 ) |> int match n % 2 with | 0 -> if (m % 2 = 0) then "Yes" else "No" | 1 -> if (m-10) % 2 = 0 then "Yes" else "No" |> stdout.WriteLine () ``No.795 Restrictions!!!!!!!!!!!!!!``()