結果
| 問題 |
No.375 立方体のN等分 (1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-06-04 23:22:21 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 356 bytes |
| コンパイル時間 | 625 ms |
| コンパイル使用メモリ | 59,752 KB |
| 実行使用メモリ | 10,020 KB |
| 最終ジャッジ日時 | 2024-10-08 09:44:21 |
| 合計ジャッジ時間 | 7,512 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | TLE * 1 -- * 31 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main(){
int n; cin>>n;
int tmin,tmax;
tmax=n-1;
tmin=n-1;
vector<int> v;
int a=n;
for(int i=2; i<n; ++i){
while(a%i==0){
v.push_back(i);
a/=i;
if(a==1){
tmin=v.size()+1;
break;
}
}
}
cout<<tmin<<" "<<tmax<<endl;
return 0;
}