結果
問題 | No.312 置換処理 |
ユーザー |
![]() |
提出日時 | 2021-05-16 15:51:50 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 304 bytes |
コンパイル時間 | 1,825 ms |
コンパイル使用メモリ | 191,784 KB |
最終ジャッジ日時 | 2025-01-21 13:11:37 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 39 WA * 6 |
ソースコード
//https://ncode.syosetu.com/n4830bu/312/ #include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ll N; cin >> N; for (ll i = 3; i * i <= N; i++) { if (N % i == 0) { cout << i << endl; return 0; } } cout << N << endl; }