結果

問題 No.300 平方数
ユーザー LeonardoneLeonardone
提出日時 2015-11-17 01:57:08
言語 Haskell
(9.8.2)
結果
WA  
実行時間 -
コード長 270 bytes
コンパイル時間 8,844 ms
コンパイル使用メモリ 154,496 KB
実行使用メモリ 13,252 KB
最終ジャッジ日時 2023-10-11 17:06:03
合計ジャッジ時間 2,953 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
6,828 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 2 ms
6,852 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 3 ms
6,824 KB
testcase_09 WA -
testcase_10 AC 2 ms
7,016 KB
testcase_11 WA -
testcase_12 AC 2 ms
6,880 KB
testcase_13 AC 32 ms
11,064 KB
testcase_14 WA -
testcase_15 AC 2 ms
6,828 KB
testcase_16 WA -
testcase_17 AC 3 ms
6,924 KB
testcase_18 WA -
testcase_19 AC 3 ms
6,908 KB
testcase_20 AC 6 ms
8,480 KB
testcase_21 AC 22 ms
10,948 KB
testcase_22 AC 12 ms
9,856 KB
testcase_23 WA -
testcase_24 AC 23 ms
10,948 KB
testcase_25 AC 33 ms
11,152 KB
testcase_26 WA -
testcase_27 AC 12 ms
10,916 KB
testcase_28 AC 32 ms
11,072 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 22 ms
11,036 KB
testcase_33 AC 22 ms
10,904 KB
testcase_34 AC 32 ms
11,008 KB
testcase_35 AC 22 ms
11,032 KB
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 22 ms
10,988 KB
testcase_42 AC 12 ms
11,004 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 AC 22 ms
10,928 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/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 = readLn >>= print . g 3 . f 2 where
    f k x
        | mod x k > 0 = x
        | otherwise   = f k (div x k)
    g i x
        | x < k = x
        | otherwise = g (i + 2) (f k x)
        where k = i * i
0