結果

問題 No.537 ユーザーID
ユーザー ducktailducktail
提出日時 2017-12-26 20:02:46
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 157 ms / 2,000 ms
コード長 626 bytes
コンパイル時間 48 ms
コンパイル使用メモリ 5,300 KB
実行使用メモリ 13,960 KB
最終ジャッジ日時 2023-08-22 21:58:38
合計ジャッジ時間 3,630 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,676 KB
testcase_01 AC 18 ms
11,664 KB
testcase_02 AC 19 ms
11,680 KB
testcase_03 AC 18 ms
11,668 KB
testcase_04 AC 18 ms
11,676 KB
testcase_05 AC 18 ms
11,644 KB
testcase_06 AC 19 ms
13,648 KB
testcase_07 AC 18 ms
11,680 KB
testcase_08 AC 18 ms
11,652 KB
testcase_09 AC 18 ms
11,880 KB
testcase_10 AC 18 ms
11,692 KB
testcase_11 AC 18 ms
11,796 KB
testcase_12 AC 18 ms
11,648 KB
testcase_13 AC 19 ms
11,672 KB
testcase_14 AC 18 ms
11,724 KB
testcase_15 AC 18 ms
11,784 KB
testcase_16 AC 18 ms
11,764 KB
testcase_17 AC 19 ms
11,680 KB
testcase_18 AC 70 ms
11,776 KB
testcase_19 AC 86 ms
11,772 KB
testcase_20 AC 77 ms
11,608 KB
testcase_21 AC 56 ms
11,700 KB
testcase_22 AC 83 ms
11,832 KB
testcase_23 AC 56 ms
12,092 KB
testcase_24 AC 29 ms
11,716 KB
testcase_25 AC 84 ms
11,852 KB
testcase_26 AC 89 ms
11,804 KB
testcase_27 AC 71 ms
11,704 KB
testcase_28 AC 80 ms
13,864 KB
testcase_29 AC 157 ms
13,960 KB
testcase_30 AC 138 ms
13,836 KB
testcase_31 AC 41 ms
11,920 KB
testcase_32 AC 43 ms
11,760 KB
testcase_33 AC 116 ms
13,936 KB
testcase_34 AC 67 ms
12,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (main args)
  (let ([n (read)]
        [ht (make-hash-table 'string=?)])
    (let loop ([x 1])
      (cond [(> (* x x) n) #f]
            [(zero? (remainder n x))
             (hash-table-put! ht (string-append
                                  (number->string x)
                                  (number->string (quotient n x))) #t)
             (hash-table-put! ht (string-append
                                  (number->string (quotient n x))
                                  (number->string x)) #t)
             (loop (+ x 1))]
            [else (loop (+ x 1))]))
    (print (hash-table-num-entries ht)))
  0)
0