結果
| 問題 | No.185 和風 |
| ユーザー |
tottoripaper
|
| 提出日時 | 2015-04-19 23:25:20 |
| 言語 | Haskell (9.14.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 10 ms / 1,000 ms |
| + 24µs | |
| コード長 | 208 bytes |
| 記録 | |
| コンパイル時間 | 1,669 ms |
| コンパイル使用メモリ | 191,232 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2026-11-12 12:02:58 |
| 合計ジャッジ時間 | 3,020 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.14.1/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