結果
問題 |
No.312 置換処理
|
ユーザー |
|
提出日時 | 2023-06-04 11:09:38 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 173 bytes |
コンパイル時間 | 548 ms |
コンパイル使用メモリ | 64,812 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-29 03:27:04 |
合計ジャッジ時間 | 2,106 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 40 WA * 5 |
ソースコード
#include <iostream> using namespace std; int64_t N,ans; int main(){ cin >> N; ans=3; while(N%ans&&ans*ans<=N)ans++; if(N%ans)cout<<N<<endl; else cout<<ans<<endl; }