結果

問題 No.185 和風
コンテスト
ユーザー regerege
提出日時 2017-04-15 16:14:16
言語 F#
(F# 10.0)
コンパイル:
fsharp_c _filename_
実行:
/usr/bin/dotnet_wrap
結果
AC  
実行時間 206 ms / 1,000 ms
+ 966µs
コード長 246 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 12,065 ms
コンパイル使用メモリ 210,436 KB
実行使用メモリ 37,316 KB
最終ジャッジ日時 2026-08-17 13:27:59
合計ジャッジ時間 14,823 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (221 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net10.0/main.dll
  main -> /home/judge/data/code/bin/Release/net10.0/publish/

ソースコード

diff #
raw source code

let N = stdin.ReadLine() |> int
let r() = let arr = stdin.ReadLine().Split(' ') |> Array.map int in arr.[1] - arr.[0]
let arr = [ for x in 1..N -> r() ]
let a = arr.[0]
if List.forall ((=)a) arr && arr.[0] > 0 then arr.[0]
else -1
|> printfn "%d"
0