結果

問題 No.513 宝探し2
ユーザー aimyaimy
提出日時 2017-05-05 23:17:17
言語 Haskell
(9.8.2)
結果
RE  
実行時間 -
コード長 280 bytes
コンパイル時間 14,960 ms
コンパイル使用メモリ 156,680 KB
実行使用メモリ 24,348 KB
平均クエリ数 2.92
最終ジャッジ日時 2023-09-23 13:46:41
合計ジャッジ時間 3,924 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
24,000 KB
testcase_01 AC 25 ms
24,312 KB
testcase_02 AC 25 ms
24,024 KB
testcase_03 AC 25 ms
23,628 KB
testcase_04 AC 24 ms
23,376 KB
testcase_05 AC 24 ms
24,036 KB
testcase_06 AC 26 ms
23,832 KB
testcase_07 AC 24 ms
24,048 KB
testcase_08 RE -
testcase_09 AC 24 ms
24,336 KB
testcase_10 AC 23 ms
24,348 KB
testcase_11 AC 24 ms
23,664 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

ソースコード

diff #

import System.IO

main = main' (0,0)
 where
  main' (x,y) = do
   putStrLn (unwords (map show [x,y]))
   hFlush stdout
   m <- readLn
   putStrLn (unwords (map show [m,0]))
   hFlush stdout
   mx <- readLn
   putStrLn (unwords (map show [m - div mx 2, div mx 2]))
   hFlush stdout
0