結果
| 問題 |
No.1250 汝は倍数なりや?
|
| コンテスト | |
| ユーザー |
ui_mtc
|
| 提出日時 | 2020-10-09 23:26:48 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 505 bytes |
| コンパイル時間 | 1,539 ms |
| コンパイル使用メモリ | 171,740 KB |
| 実行使用メモリ | 83,372 KB |
| 最終ジャッジ日時 | 2024-07-20 14:21:25 |
| 合計ジャッジ時間 | 40,218 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 49 |
ソースコード
#include <bits/stdc++.h>
#define int long long
#define double long double
using namespace std;
const int MOD = 1000000007;
const int INF = 1e11;
using Graph = vector<vector<int>>;
signed main(){
int N, H;
cin >> N >> H;
vector<int> Prime;
vector<bool> fg(100000001, true);
for( int i = 2; i <= sqrt(100000000); i++ ){
if( fg[i] ){
for( int j = 2; i*j <= 100000000; j++ ) fg[i*j] = 0;
}
}
for( int i = 2; i <= 100000000; i++ ){
if( fg[i] ) Prime.emplace_back(i);
}
}
ui_mtc