結果
問題 |
No.414 衝動
|
ユーザー |
![]() |
提出日時 | 2025-02-11 01:13:23 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 11 ms / 1,000 ms |
コード長 | 441 bytes |
コンパイル時間 | 3,683 ms |
コンパイル使用メモリ | 273,476 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-02-11 01:13:28 |
合計ジャッジ時間 | 4,337 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #else #define Debug(...) void(0) #endif #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { ll n; cin >> n; for (ll i = 2; i * i <= n; ++i) { if (n % i == 0) { cout << i << ' ' << n / i << endl; return 0; } } cout << 1 << ' ' << n << endl; return 0; }