結果
| 問題 | No.2750 Number of Prime Factors |
| コンテスト | |
| ユーザー |
cled0328
|
| 提出日時 | 2024-05-10 21:47:18 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 445 bytes |
| 記録 | |
| コンパイル時間 | 1,223 ms |
| コンパイル使用メモリ | 208,160 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-04 17:11:19 |
| 合計ジャッジ時間 | 2,122 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 19 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
unsigned long long n;cin>>n;
unsigned long long cr=1;
int ct=0;
for(int i=2;i<100;i++){
bool sk=false;
for(int j=2;j*j<=i;j++){
if(i%j==0){
sk=true;
break;
}
}
if(sk)continue;
if(n/cr<i)break;
if(n<cr*i)break;
cr*=i;
ct++;
}
cout<<ct<<"\n";
}
cled0328