結果
| 問題 | No.482 あなたの名は |
| コンテスト | |
| ユーザー |
tak
|
| 提出日時 | 2018-04-23 23:59:55 |
| 言語 | F# (F# 10.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 352 bytes |
| 記録 | |
| コンパイル時間 | 5,219 ms |
| コンパイル使用メモリ | 207,468 KB |
| 実行使用メモリ | 68,864 KB |
| 最終ジャッジ日時 | 2026-03-15 12:56:19 |
| 合計ジャッジ時間 | 8,526 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 10 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (182 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net10.0/main.dll main -> /home/judge/data/code/bin/Release/net10.0/publish/
ソースコード
let read() = stdin.ReadLine().Split() |> Array.map int64 let N,K = let t = read() in t.[0],t.[1] let D = read() D |> Array.zip [|1L..N|] |> Array.filter (fun tup -> fst tup <> snd tup) |> Array.length |> fun x -> max (x-1) 0 |> int64 |> function | x when x<=K && (K-x)%2L=0L -> "YES" | _ -> "NO" |> printfn "%s"
tak