結果
問題 |
No.312 置換処理
|
ユーザー |
![]() |
提出日時 | 2020-01-09 14:18:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 361 bytes |
コンパイル時間 | 1,597 ms |
コンパイル使用メモリ | 172,560 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-23 03:51:39 |
合計ジャッジ時間 | 2,951 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 WA * 15 |
ソースコード
#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]++; } } for(auto p : mp){ if(p.first <= 2) continue; cout << p.first; return 0; } return 0; }