結果
| 問題 | 
                            No.2637 Factorize?
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2024-05-05 22:29:11 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 306 bytes | 
| コンパイル時間 | 1,548 ms | 
| コンパイル使用メモリ | 165,708 KB | 
| 実行使用メモリ | 17,096 KB | 
| 最終ジャッジ日時 | 2024-11-27 23:52:39 | 
| 合計ジャッジ時間 | 48,057 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 17 TLE * 15 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long int;
int main() {
  ll P;
  cin >> P;
  int B = 1;
  for (int A = 1; A*A <= P; A++) {
    if (P % A == 0) {
      B = P / A;
    }
  }
  cout << P/B << " " << B << endl;
  return 0;
}