結果
問題 | No.514 宝探し3 |
ユーザー | aimy |
提出日時 | 2017-05-05 23:28:02 |
言語 | Haskell (9.8.2) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 328 bytes |
コンパイル時間 | 1,195 ms |
コンパイル使用メモリ | 167,152 KB |
実行使用メモリ | 24,288 KB |
平均クエリ数 | 2.83 |
最終ジャッジ日時 | 2023-09-23 13:49:34 |
合計ジャッジ時間 | 2,725 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 28 ms
23,580 KB |
testcase_01 | AC | 25 ms
23,952 KB |
testcase_02 | AC | 26 ms
23,616 KB |
testcase_03 | AC | 26 ms
23,484 KB |
testcase_04 | AC | 25 ms
23,784 KB |
testcase_05 | AC | 26 ms
23,580 KB |
testcase_06 | AC | 25 ms
23,532 KB |
testcase_07 | AC | 27 ms
24,288 KB |
testcase_08 | AC | 26 ms
24,168 KB |
testcase_09 | AC | 26 ms
23,148 KB |
testcase_10 | AC | 26 ms
23,328 KB |
testcase_11 | AC | 25 ms
23,316 KB |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
import System.IO import Control.Monad main = main' (0,0) where main' (x,y) = do putStrLn (unwords (map show [x,y])) hFlush stdout m <- readLn unless (m==0) $ do putStrLn (unwords (map show [m,0])) hFlush stdout mx <- readLn putStrLn (unwords (map show [m - div mx 2, div mx 2])) hFlush stdout