結果

問題 No.406 鴨等間隔の法則
ユーザー kuuso1kuuso1
提出日時 2016-08-16 07:59:32
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 430 bytes
コンパイル時間 10,886 ms
コンパイル使用メモリ 188,712 KB
実行使用メモリ 42,880 KB
最終ジャッジ日時 2024-04-24 20:27:36
合計ジャッジ時間 14,844 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
35,584 KB
testcase_01 AC 59 ms
30,208 KB
testcase_02 AC 52 ms
29,824 KB
testcase_03 AC 53 ms
29,568 KB
testcase_04 AC 80 ms
42,112 KB
testcase_05 AC 67 ms
35,200 KB
testcase_06 AC 66 ms
35,200 KB
testcase_07 AC 66 ms
35,456 KB
testcase_08 AC 82 ms
41,600 KB
testcase_09 AC 86 ms
42,624 KB
testcase_10 AC 69 ms
35,584 KB
testcase_11 AC 76 ms
40,576 KB
testcase_12 AC 71 ms
36,636 KB
testcase_13 AC 75 ms
36,224 KB
testcase_14 WA -
testcase_15 AC 54 ms
30,848 KB
testcase_16 AC 55 ms
30,952 KB
testcase_17 AC 57 ms
30,464 KB
testcase_18 AC 56 ms
30,592 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 61 ms
31,872 KB
testcase_22 WA -
testcase_23 AC 70 ms
36,864 KB
testcase_24 WA -
testcase_25 AC 82 ms
42,752 KB
testcase_26 WA -
testcase_27 AC 74 ms
42,752 KB
testcase_28 AC 72 ms
42,624 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 84 ms
42,240 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (658 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/

ソースコード

diff #

open System
type Sol() =
    member this.Solve() = 
        let N = stdin.ReadLine() |> int
        let A = stdin.ReadLine().Split(' ') |> Array.map int |> Array.sort 
        let pairA = Seq.pairwise A |> Seq.map (fun (x,y) -> (y - x)) |> Seq.distinct
        let yesno = A.[0] = 0 && (Seq.length pairA) = 1
        if yesno = true then Console.WriteLine("YES") else Console.WriteLine("NO") 

let mySol = new Sol()
mySol.Solve()
0