結果
問題 | No.312 置換処理 |
ユーザー |
![]() |
提出日時 | 2020-01-09 14:20:05 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 14 ms / 2,000 ms |
コード長 | 391 bytes |
コンパイル時間 | 1,698 ms |
コンパイル使用メモリ | 175,056 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-15 12:31:52 |
合計ジャッジ時間 | 3,090 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 45 |
ソースコード
#include<bits/stdc++.h>using namespace std;#ifdef LOCAL_DEBUG#include "LOCAL_DEBUG.hpp"#endif#define int long longsigned main(){int n; cin >> n;map<int ,int> mp;for(int i = 2; i*i <= n; i++){if(n % i == 0){mp[i]++;mp[n / i]++;}}mp[n]++;for(auto p : mp){if(p.first <= 2) continue;cout << p.first;return 0;}return 0;}