結果
| 問題 | No.185 和風 |
| コンテスト | |
| ユーザー |
tottoripaper
|
| 提出日時 | 2015-04-19 23:25:20 |
| 言語 | Haskell (9.10.1) |
| 結果 |
AC
|
| 実行時間 | 8 ms / 1,000 ms |
| コード長 | 208 bytes |
| コンパイル時間 | 1,634 ms |
| コンパイル使用メモリ | 173,952 KB |
| 実行使用メモリ | 8,320 KB |
| 最終ジャッジ日時 | 2024-07-04 18:20:16 |
| 合計ジャッジ時間 | 2,124 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
import Control.Monad
main = do
n <- readLn
xys <- replicateM n $ liftM (map read . words) getLine
let
zs@(z:_) = map (\[x, y] -> y - x) xys
in print $ if all (==z) zs && z > 0 then z else (-1)
tottoripaper