結果

問題 No.677 10^Nの約数
ユーザー neko_the_shadowneko_the_shadow
提出日時 2018-05-07 23:24:11
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 34 ms / 2,000 ms
コード長 288 bytes
コンパイル時間 125 ms
コンパイル使用メモリ 5,328 KB
実行使用メモリ 16,596 KB
最終ジャッジ日時 2023-09-10 10:59:41
合計ジャッジ時間 2,256 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
14,532 KB
testcase_01 AC 32 ms
14,532 KB
testcase_02 AC 32 ms
14,492 KB
testcase_03 AC 32 ms
14,608 KB
testcase_04 AC 32 ms
14,596 KB
testcase_05 AC 32 ms
14,564 KB
testcase_06 AC 31 ms
14,536 KB
testcase_07 AC 31 ms
14,500 KB
testcase_08 AC 32 ms
14,580 KB
testcase_09 AC 32 ms
14,656 KB
testcase_10 AC 32 ms
14,556 KB
testcase_11 AC 32 ms
14,572 KB
testcase_12 AC 32 ms
16,596 KB
testcase_13 AC 33 ms
14,572 KB
testcase_14 AC 32 ms
14,588 KB
testcase_15 AC 33 ms
14,648 KB
testcase_16 AC 32 ms
14,716 KB
testcase_17 AC 34 ms
14,820 KB
testcase_18 AC 33 ms
14,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(use util.combinations)

(define (solve n)
  (sort
    (map
      (lambda (lst) (* (expt 2 (car lst)) (expt 5 (cadr lst))))
      (cartesian-product (list (iota (+ n 1)) (iota (+ n 1)))))))

(define (MAIN)
  (let ((n (string->number (read-line))))
    (for-each print (solve n))))

(MAIN)
0