結果
問題 |
No.537 ユーザーID
|
ユーザー |
|
提出日時 | 2017-06-30 22:30:25 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 384 bytes |
コンパイル時間 | 842 ms |
コンパイル使用メモリ | 79,572 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-04 19:48:07 |
合計ジャッジ時間 | 1,986 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 WA * 13 |
ソースコード
#include <iostream> #include <map> #include <cmath> #define int long long using namespace std; signed main() { int n,nn,ans = 1; map<int,int> mp; cin >> n; nn = n; for(int i = 2;i * i <= nn;i++){ while(n % i == 0){ mp[i]++; n /= i; } } if(n != 1) mp[n]++; for(auto it = mp.begin();it != mp.end();it++){ ans *= it->second + 1; } cout << ans << endl; return 0; }