結果

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

ソースコード

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, 5) << "\n";
}
0