結果

問題 No.51 やる気の問題
ユーザー Michae'GonMichae'Gon
提出日時 2015-04-22 18:10:25
言語 Haskell
(9.8.2)
結果
AC  
実行時間 22 ms / 5,000 ms
コード長 133 bytes
コンパイル時間 757 ms
コンパイル使用メモリ 156,244 KB
実行使用メモリ 13,172 KB
最終ジャッジ日時 2023-09-18 08:18:53
合計ジャッジ時間 2,105 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,100 KB
testcase_01 AC 2 ms
7,100 KB
testcase_02 AC 3 ms
7,196 KB
testcase_03 AC 3 ms
7,352 KB
testcase_04 AC 3 ms
7,160 KB
testcase_05 AC 12 ms
11,440 KB
testcase_06 AC 12 ms
10,068 KB
testcase_07 AC 7 ms
10,056 KB
testcase_08 AC 5 ms
8,792 KB
testcase_09 AC 22 ms
13,100 KB
testcase_10 AC 6 ms
9,088 KB
testcase_11 AC 5 ms
8,780 KB
testcase_12 AC 12 ms
10,388 KB
testcase_13 AC 12 ms
10,488 KB
testcase_14 AC 7 ms
9,644 KB
testcase_15 AC 12 ms
12,036 KB
testcase_16 AC 5 ms
8,440 KB
testcase_17 AC 3 ms
7,636 KB
testcase_18 AC 12 ms
12,340 KB
testcase_19 AC 12 ms
12,500 KB
testcase_20 AC 7 ms
10,172 KB
testcase_21 AC 3 ms
7,508 KB
testcase_22 AC 22 ms
13,172 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 #

main = getContents >>= print . solve . map read . lines
        where solve [w, d] = foldr (\x acc -> acc - div acc (x ^ 2)) w [2..d]
0