結果
| 問題 | No.8030 ミラー・ラビン素数判定法のテスト |
| ユーザー |
|
| 提出日時 | 2023-08-13 18:23:36 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 66 ms / 9,973 ms |
| コード長 | 294 bytes |
| 記録 | |
| コンパイル時間 | 2,680 ms |
| コンパイル使用メモリ | 440,736 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-02 04:11:24 |
| 合計ジャッジ時間 | 3,624 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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, 8) << "\n";
}
}