結果
問題 | No.514 宝探し3 |
ユーザー | Leonardone |
提出日時 | 2017-05-06 00:07:43 |
言語 | Haskell (9.8.2) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 565 bytes |
コンパイル時間 | 711 ms |
コンパイル使用メモリ | 165,800 KB |
実行使用メモリ | 24,336 KB |
平均クエリ数 | 2.75 |
最終ジャッジ日時 | 2023-09-23 13:52:06 |
合計ジャッジ時間 | 2,109 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 31 ms
23,664 KB |
testcase_01 | AC | 26 ms
23,844 KB |
testcase_02 | AC | 27 ms
23,580 KB |
testcase_03 | AC | 26 ms
23,580 KB |
testcase_04 | AC | 26 ms
24,336 KB |
testcase_05 | AC | 26 ms
24,276 KB |
testcase_06 | AC | 26 ms
23,412 KB |
testcase_07 | AC | 27 ms
24,252 KB |
testcase_08 | AC | 26 ms
23,520 KB |
testcase_09 | AC | 26 ms
23,328 KB |
testcase_10 | AC | 26 ms
23,616 KB |
testcase_11 | AC | 26 ms
23,328 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
ソースコード
-- Try yukicoder -- author: Leonardone @ NEETSDKASU import System.IO main = do let maxlen = 1000000000 putStrLn "0 0" hFlush stdout len0 <- read <$> getLine if len0 == 0 then return () else do putStrLn $ "0 " ++ show maxlen hFlush stdout len1 <- read <$> getLine if len1 == 0 then return () else do let x = (len0 + len1 - maxlen) `div` 2 let y = len0 - x putStrLn $ show x ++ " " ++ show y hFlush stdout getLine return ()