結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-07-07 04:02:34 |
| 言語 | Haskell (9.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 263 bytes |
| 記録 | |
| コンパイル時間 | 7,033 ms |
| コンパイル使用メモリ | 191,872 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2026-04-21 21:55:51 |
| 合計ジャッジ時間 | 11,217 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 13 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.14.1/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
-- yukicoder My Practice
-- author: Leonardone @ NEETSDKASU
main = print . solve =<< readLn
solve n = ans where
t = filter f $ takeWhile g [1..]
f x = mod n x == 0
g x = x * x <= n
d = if last t ^ 2 == n then -1 else 0
ans = d + 2 * length t