結果
| 問題 |
No.406 鴨等間隔の法則
|
| ユーザー |
tak
|
| 提出日時 | 2018-04-13 15:13:38 |
| 言語 | F# (F# 4.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 220 bytes |
| コンパイル時間 | 6,851 ms |
| コンパイル使用メモリ | 188,060 KB |
| 実行使用メモリ | 48,000 KB |
| 最終ジャッジ日時 | 2024-06-26 21:40:47 |
| 合計ジャッジ時間 | 11,243 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 27 WA * 2 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (245 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/
ソースコード
stdin.ReadLine() |> ignore stdin.ReadLine().Split() |> Array.map(int) |> Array.sort |> Array.pairwise |> Array.map(fun (a,b) -> b-a) |> Array.distinct |> Array.length |> function | 1 -> "YES" | _ -> "NO" |> printfn "%s"
tak