結果
問題 |
No.312 置換処理
|
ユーザー |
![]() |
提出日時 | 2020-01-09 14:19:43 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 380 bytes |
コンパイル時間 | 1,663 ms |
コンパイル使用メモリ | 174,500 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-23 03:51:42 |
合計ジャッジ時間 | 2,982 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 WA * 9 |
ソースコード
#include<bits/stdc++.h> using namespace std; #ifdef LOCAL_DEBUG #include "LOCAL_DEBUG.hpp" #endif #define int long long signed 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]++; } } for(auto p : mp){ if(p.first <= 2) continue; cout << p.first; return 0; } return 0; }