結果
問題 |
No.2750 Number of Prime Factors
|
ユーザー |
|
提出日時 | 2024-09-08 19:36:12 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 346 bytes |
コンパイル時間 | 3,524 ms |
コンパイル使用メモリ | 195,304 KB |
最終ジャッジ日時 | 2025-02-24 05:49:53 |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll=long long; using LL=__int128_t; int main() { ll n; cin>>n; LL N=n; vector<LL> P={2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61}; LL u=1; for(int j=0;j<100;j++){ u*=P[j]; if(u>N){ cout<<j<<endl; return 0; } } }