結果

問題 No.8030 ミラー・ラビン素数判定法のテスト
ユーザー keiden
提出日時 2024-09-13 19:03:47
言語 Scheme
(Gauche-0.9.15)
結果
RE  
実行時間 -
コード長 332 bytes
コンパイル時間 396 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 41,088 KB
最終ジャッジ日時 2024-09-13 19:04:02
合計ジャッジ時間 13,629 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 4 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

(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 (miller-rabin-prime? x) 1 0))
      (display "\n")
    )
  )
)
0