結果
問題 |
No.136 Yet Another GCD Problem
|
ユーザー |
![]() |
提出日時 | 2015-02-21 22:48:38 |
言語 | Haskell (9.10.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 209 bytes |
コンパイル時間 | 5,290 ms |
コンパイル使用メモリ | 172,672 KB |
実行使用メモリ | 8,320 KB |
最終ジャッジ日時 | 2024-06-23 21:44:42 |
合計ジャッジ時間 | 6,773 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 25 |
コンパイルメッセージ
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
ソースコード
import Control.Monad main = do [n, k] <- liftM (map read . words) getLine let f x | n `mod` x == 0 && n `div` x >= k = x | otherwise = 1 res = maximum . map f $ [1..n] in print res