結果

問題 No.8030 ミラー・ラビン素数判定法のテスト
ユーザー ninoinui
提出日時 2020-09-26 09:09:56
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 364 ms / 9,973 ms
コード長 288 bytes
コンパイル時間 3,598 ms
コンパイル使用メモリ 383,412 KB
最終ジャッジ日時 2025-01-14 22:01:18
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <boost/multiprecision/miller_rabin.hpp>
using namespace std;

int main() {
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);

  long N, X;
  cin >> N;
  while (cin >> X) cout << X << " " << boost::multiprecision::miller_rabin_test(X, 10) << "\n";
}
0