結果

問題 No.406 鴨等間隔の法則
ユーザー taktak
提出日時 2018-04-13 15:13:38
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 220 bytes
コンパイル時間 3,178 ms
コンパイル使用メモリ 156,892 KB
実行使用メモリ 44,788 KB
最終ジャッジ日時 2023-09-09 04:33:24
合計ジャッジ時間 10,685 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
33,140 KB
testcase_01 AC 90 ms
24,740 KB
testcase_02 AC 91 ms
22,852 KB
testcase_03 WA -
testcase_04 AC 184 ms
43,632 KB
testcase_05 AC 130 ms
32,248 KB
testcase_06 AC 132 ms
32,160 KB
testcase_07 AC 132 ms
32,404 KB
testcase_08 AC 183 ms
41,544 KB
testcase_09 AC 192 ms
42,720 KB
testcase_10 AC 135 ms
31,088 KB
testcase_11 AC 170 ms
39,856 KB
testcase_12 AC 143 ms
33,748 KB
testcase_13 AC 142 ms
34,088 KB
testcase_14 AC 176 ms
42,320 KB
testcase_15 WA -
testcase_16 AC 104 ms
26,392 KB
testcase_17 AC 101 ms
25,596 KB
testcase_18 AC 104 ms
26,360 KB
testcase_19 AC 104 ms
28,308 KB
testcase_20 AC 109 ms
26,736 KB
testcase_21 AC 110 ms
28,812 KB
testcase_22 AC 117 ms
30,136 KB
testcase_23 AC 146 ms
32,768 KB
testcase_24 AC 165 ms
38,964 KB
testcase_25 AC 192 ms
42,780 KB
testcase_26 AC 191 ms
44,572 KB
testcase_27 WA -
testcase_28 AC 187 ms
44,788 KB
testcase_29 AC 191 ms
44,600 KB
testcase_30 AC 190 ms
42,516 KB
testcase_31 AC 191 ms
44,212 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

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"
0