結果
問題 | No.513 宝探し2 |
ユーザー | Leonardone |
提出日時 | 2017-05-05 23:38:52 |
言語 | Haskell (9.8.2) |
結果 |
RE
|
実行時間 | - |
コード長 | 392 bytes |
コンパイル時間 | 815 ms |
コンパイル使用メモリ | 164,656 KB |
実行使用メモリ | 24,396 KB |
平均クエリ数 | 2.92 |
最終ジャッジ日時 | 2023-09-23 13:50:24 |
合計ジャッジ時間 | 2,087 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 37 ms
24,048 KB |
testcase_01 | AC | 25 ms
24,000 KB |
testcase_02 | AC | 25 ms
23,520 KB |
testcase_03 | AC | 24 ms
23,652 KB |
testcase_04 | AC | 25 ms
24,360 KB |
testcase_05 | AC | 25 ms
23,364 KB |
testcase_06 | AC | 25 ms
23,844 KB |
testcase_07 | AC | 24 ms
23,664 KB |
testcase_08 | RE | - |
testcase_09 | AC | 24 ms
23,640 KB |
testcase_10 | AC | 26 ms
23,400 KB |
testcase_11 | RE | - |
コンパイルメッセージ
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 = 100000 putStrLn "0 0" hFlush stdout len0 <- read <$> getLine putStrLn $ "0 " ++ show maxlen hFlush stdout len1 <- read <$> getLine let x = (len0 + len1 - maxlen) `div` 2 let y = len0 - x putStrLn $ show x ++ " " ++ show y hFlush stdout getLine