結果

問題 No.338 アンケート機能
ユーザー LeonardoneLeonardone
提出日時 2016-01-30 00:14:03
言語 Haskell
(9.8.2)
結果
WA  
実行時間 -
コード長 502 bytes
コンパイル時間 8,025 ms
コンパイル使用メモリ 161,556 KB
実行使用メモリ 5,468 KB
最終ジャッジ日時 2023-10-21 17:37:38
合計ジャッジ時間 3,977 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,272 KB
testcase_01 WA -
testcase_02 AC 2 ms
5,296 KB
testcase_03 AC 2 ms
5,284 KB
testcase_04 AC 3 ms
5,272 KB
testcase_05 AC 2 ms
5,404 KB
testcase_06 AC 2 ms
5,272 KB
testcase_07 AC 3 ms
5,420 KB
testcase_08 WA -
testcase_09 AC 3 ms
5,444 KB
testcase_10 AC 3 ms
5,288 KB
testcase_11 AC 3 ms
5,276 KB
testcase_12 AC 2 ms
5,284 KB
testcase_13 AC 3 ms
5,280 KB
testcase_14 AC 3 ms
5,280 KB
testcase_15 WA -
testcase_16 AC 2 ms
5,280 KB
testcase_17 AC 2 ms
5,276 KB
testcase_18 AC 2 ms
5,276 KB
testcase_19 AC 2 ms
5,304 KB
testcase_20 AC 2 ms
5,464 KB
testcase_21 AC 3 ms
5,404 KB
testcase_22 AC 3 ms
5,456 KB
testcase_23 AC 3 ms
5,304 KB
testcase_24 AC 2 ms
5,304 KB
testcase_25 AC 2 ms
5,468 KB
testcase_26 AC 3 ms
5,448 KB
testcase_27 AC 3 ms
5,456 KB
testcase_28 AC 2 ms
5,304 KB
testcase_29 AC 3 ms
5,276 KB
testcase_30 AC 2 ms
5,276 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.2/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

-- yukicoder My Practice
-- author: Leonardone @ NEETSDKASU

main = print . solve . map read . words =<< getLine where
    calc x z = (5 + 1000 * x `div` z) `div` 10
    solve [a, b] = head
        [ m + n
        | x <- [1..]
        , y <- [a, a - 1]
        , y >= 0
        , z <- [b, b - 1]
        , z >= 0
        , let m = x * y `div` 100
        , let n = x * z `div` 100
        , let s = m + n
        , s > 0
        , let u = calc m s
        , let v = calc n s
        , a == u && b == v]
0