結果
問題 | No.328 きれいな連立方程式 |
ユーザー |
![]() |
提出日時 | 2015-12-23 11:05:47 |
言語 | Haskell (9.10.1) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 346 bytes |
コンパイル時間 | 10,263 ms |
コンパイル使用メモリ | 171,136 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-18 19:27:25 |
合計ジャッジ時間 | 3,857 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
コンパイルメッセージ
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
ソースコード
judge::Integrala=>a->a->a->a->Stringjudge c1 c2 c3 c4| (c2 * c3 - c1 * c4) ^ 2 > 4 * (c2 ^ 2 - c1 * c3) * (c3 ^2 - c2 * c4) = "R"| otherwise = "I"main::IO()main = putStrLn .(\(c1 : c2 : c3 : c4 : _) -> judge c1 c2 c3 c4) . map read . words =<< getLine