結果
| 問題 |
No.131 マンハッタン距離
|
| コンテスト | |
| ユーザー |
d_nishiyama85
|
| 提出日時 | 2015-06-09 20:20:44 |
| 言語 | Haskell (9.10.1) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 182 bytes |
| コンパイル時間 | 9,082 ms |
| コンパイル使用メモリ | 168,576 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-06 15:13:29 |
| 合計ジャッジ時間 | 6,886 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
コンパイルメッセージ
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
ソースコード
main = do cs <- getLine let [a, b, d] = map readInt $ words cs let x1 = max (d - b) 0 let x2 = min a d print $ max (x2 - x1 + 1) 0 readInt :: String -> Int readInt = read
d_nishiyama85