結果
| 問題 |
No.8030 ミラー・ラビン素数判定法のテスト
|
| ユーザー |
|
| 提出日時 | 2023-08-13 18:21:50 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 656 ms / 9,973 ms |
| コード長 | 295 bytes |
| コンパイル時間 | 6,420 ms |
| コンパイル使用メモリ | 381,136 KB |
| 最終ジャッジ日時 | 2025-02-16 07:53:03 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
#include <boost/multiprecision/miller_rabin.hpp>
using namespace std;
namespace mp = boost::multiprecision;
int main() {
int n;
cin >> n;
while (n--) {
long long int a_i;
cin >> a_i;
cout << a_i << " " << mp::miller_rabin_test(a_i, 16) << "\n";
}
}