結果
| 問題 |
No.537 ユーザーID
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-26 20:02:46 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
AC
|
| 実行時間 | 122 ms / 2,000 ms |
| コード長 | 626 bytes |
| コンパイル時間 | 99 ms |
| コンパイル使用メモリ | 6,820 KB |
| 実行使用メモリ | 20,736 KB |
| 最終ジャッジ日時 | 2024-12-18 00:23:48 |
| 合計ジャッジ時間 | 3,230 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
(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)