結果
| 問題 | No.795 Restrictions!!!!!!!!!!!!!! |
| コンテスト | |
| ユーザー |
chike_plus
|
| 提出日時 | 2019-03-29 05:48:04 |
| 言語 | F# (F# 10.0) |
| 結果 |
AC
|
| 実行時間 | 73 ms / 2,000 ms |
| コード長 | 387 bytes |
| 記録 | |
| コンパイル時間 | 12,008 ms |
| コンパイル使用メモリ | 220,484 KB |
| 実行使用メモリ | 31,608 KB |
| 最終ジャッジ日時 | 2026-05-06 16:49:31 |
| 合計ジャッジ時間 | 14,395 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (288 ミリ秒)。 /home/judge/data/code/Main.fs(6,9): warning FS0025: この式のパターン マッチが不完全です たとえば、値 '2' はパターンに含まれないケースを示す可能性があります。 [/home/judge/data/code/main.fsproj] main -> /home/judge/data/code/bin/Release/net10.0/main.dll main -> /home/judge/data/code/bin/Release/net10.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!!!!!!!!!!!!!!``()
chike_plus