結果
問題 |
No.312 置換処理
|
ユーザー |
|
提出日時 | 2015-12-05 00:24:48 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 240 bytes |
コンパイル時間 | 473 ms |
コンパイル使用メモリ | 55,008 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-14 14:07:56 |
合計ジャッジ時間 | 1,697 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 39 WA * 6 |
ソースコード
#include <iostream> using namespace std; typedef long long ll; ll solve(ll N){ for(ll d=3;d*d<=N;d++){ if(N % d == 0){ return d; } } return N; } int main(){ ll N; cin >> N; cout << solve(N) << endl; return 0; }