結果

問題 No.338 アンケート機能
ユーザー HaarHaar
提出日時 2016-05-31 10:48:32
言語 Haskell
(9.6.2)
結果
AC  
実行時間 5 ms / 2,000 ms
コード長 215 bytes
コンパイル時間 5,173 ms
コンパイル使用メモリ 162,300 KB
実行使用メモリ 8,560 KB
最終ジャッジ日時 2023-08-07 21:47:51
合計ジャッジ時間 6,630 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
8,508 KB
testcase_01 AC 5 ms
8,540 KB
testcase_02 AC 4 ms
8,516 KB
testcase_03 AC 5 ms
8,412 KB
testcase_04 AC 5 ms
8,356 KB
testcase_05 AC 5 ms
8,324 KB
testcase_06 AC 4 ms
8,384 KB
testcase_07 AC 5 ms
8,344 KB
testcase_08 AC 5 ms
8,328 KB
testcase_09 AC 4 ms
8,444 KB
testcase_10 AC 4 ms
8,396 KB
testcase_11 AC 5 ms
8,368 KB
testcase_12 AC 4 ms
8,348 KB
testcase_13 AC 4 ms
8,392 KB
testcase_14 AC 5 ms
8,404 KB
testcase_15 AC 4 ms
8,364 KB
testcase_16 AC 4 ms
8,340 KB
testcase_17 AC 4 ms
8,424 KB
testcase_18 AC 5 ms
8,348 KB
testcase_19 AC 5 ms
8,392 KB
testcase_20 AC 4 ms
8,476 KB
testcase_21 AC 5 ms
8,416 KB
testcase_22 AC 4 ms
8,356 KB
testcase_23 AC 5 ms
8,412 KB
testcase_24 AC 4 ms
8,464 KB
testcase_25 AC 5 ms
8,320 KB
testcase_26 AC 5 ms
8,324 KB
testcase_27 AC 5 ms
8,384 KB
testcase_28 AC 5 ms
8,452 KB
testcase_29 AC 5 ms
8,444 KB
testcase_30 AC 4 ms
8,560 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 )

Main.hs:2:1: warning: [GHC-94817] [-Wtabs]
    Tab character found here, and in one further location.
    Suggested fix: Please use spaces instead.
  |
2 |         [a, b] <- getLine >>= return . map read . words
  | ^^^^^^^^
[2 of 2] Linking a.out

ソースコード

diff #

main = do
	[a, b] <- getLine >>= return . map read . words
	print $ minimum [floor (x + y) | x <- [0..200], y <- [0..200], x + y >= 1, floor ((100 * x) / (x + y) + 0.5) == a, floor ((100 * y) / (x + y) + 0.5) == b]
0