結果
問題 | No.513 宝探し2 |
ユーザー | ducktail |
提出日時 | 2018-07-11 14:31:01 |
言語 | Haskell (9.8.2) |
結果 |
RE
|
実行時間 | - |
コード長 | 298 bytes |
コンパイル時間 | 6,554 ms |
コンパイル使用メモリ | 156,508 KB |
実行使用メモリ | 24,264 KB |
平均クエリ数 | 2.92 |
最終ジャッジ日時 | 2023-09-23 16:09:11 |
合計ジャッジ時間 | 7,753 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 26 ms
23,628 KB |
testcase_01 | AC | 26 ms
23,328 KB |
testcase_02 | AC | 25 ms
23,808 KB |
testcase_03 | AC | 25 ms
24,228 KB |
testcase_04 | AC | 25 ms
24,216 KB |
testcase_05 | AC | 26 ms
24,264 KB |
testcase_06 | AC | 25 ms
23,328 KB |
testcase_07 | AC | 25 ms
23,784 KB |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | AC | 25 ms
23,592 KB |
testcase_11 | AC | 24 ms
24,000 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 (hFlush, stdout) main :: IO () main = do putStrLn "0 0" hFlush stdout d1 <- readLn putStrLn "100000 0" hFlush stdout d2 <- readLn let ay = (d1 + d2 - 100000) `div` 2 let ax = d1 - ay putStrLn $ unwords $ map show $ [ax, ay] hFlush stdout getLine return ()