結果
問題 | No.8030 ミラー・ラビン素数判定法のテスト |
ユーザー |
|
提出日時 | 2024-09-13 19:01:54 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
AC
|
実行時間 | 3,726 ms / 9,973 ms |
コード長 | 325 bytes |
コンパイル時間 | 295 ms |
コンパイル使用メモリ | 7,068 KB |
実行使用メモリ | 41,040 KB |
最終ジャッジ日時 | 2024-09-13 19:02:13 |
合計ジャッジ時間 | 18,776 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
(use scheme.base) (use scheme.read) (use scheme.write) (use math.prime) (define yuki3030 (let* ( (n (read)) ) (do ( (x (read) (read)) (i 1 (+ i 1)) ) ((> i n) ) (write x) (display " ") (write (if (bpsw-prime? x) 1 0)) (display "\n") ) ) )