結果
問題 |
No.312 置換処理
|
ユーザー |
![]() |
提出日時 | 2019-10-16 00:28:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 410 bytes |
コンパイル時間 | 1,845 ms |
コンパイル使用メモリ | 173,064 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-31 08:24:43 |
合計ジャッジ時間 | 3,100 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 WA * 15 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ long long N; cin >> N; map<long long,int> table; for(long long i=2;i*i<=N;i++){ while(N%i==0){ N/=i; table[i]++; } table[N]++; } for(auto s:table){ if(s.first==2||s.first==1) continue; else{ cout << s.first << endl; return 0; } } }