結果
問題 |
No.312 置換処理
|
ユーザー |
![]() |
提出日時 | 2017-05-03 07:28:29 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 328 bytes |
コンパイル時間 | 1,534 ms |
コンパイル使用メモリ | 166,052 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-14 06:59:03 |
合計ジャッジ時間 | 3,030 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 39 WA * 6 |
ソースコード
#include <bits/stdc++.h> #define REP(i,n,N) for(int i=(n);i<(int)N;i++) #define p(s) cout<<(s)<<endl #define ck(n,a,b) ((a)<=(n)&&(n)<(b)) typedef long long ll; using namespace std; const int inf=1e9; int main(){ ll N; cin>>N; ll ans=N; for(ll i=3;i*i<=N;i++){ if(N%i==0){ ans=i; break; } } p(ans); return 0; }