結果
問題 | No.338 アンケート機能 |
ユーザー |
|
提出日時 | 2016-01-30 00:26:55 |
言語 | Haskell (9.10.1) |
結果 |
AC
|
実行時間 | 9 ms / 2,000 ms |
コード長 | 453 bytes |
コンパイル時間 | 8,357 ms |
コンパイル使用メモリ | 172,544 KB |
実行使用メモリ | 8,192 KB |
最終ジャッジ日時 | 2024-11-08 02:55:47 |
合計ジャッジ時間 | 9,568 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
-- yukicoder My Practice-- author: Leonardone @ NEETSDKASU{-解説読後http://yukicoder.me/problems/814/editorial-}main = print . solve . map read . words =<< getLine wherecalc x z = ((1000 * x `div` z) + 5) `div` 10solve [a, b] = minimum[ c| ai <- [0..201], bi <- [0..201], let c = ai + bi, c > 0, let y = calc ai c, let z = calc bi c, a == y && b == z]