結果
| 問題 |
No.809 かけ算
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-13 21:44:04 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 483 bytes |
| コンパイル時間 | 1,601 ms |
| コンパイル使用メモリ | 167,108 KB |
| 実行使用メモリ | 16,976 KB |
| 最終ジャッジ日時 | 2024-11-22 17:56:04 |
| 合計ジャッジ時間 | 27,101 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 |
| other | TLE * 6 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define all(x) x.begin(),x.end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
template<class T> inline bool chmax(T&a,T b){if(a<b){a=b;return 1;}return 0;}
template<class T> inline bool chmin(T&a,T b){if(a>b){a=b;return 1;}return 0;}
using ll = long long;
int c,a,b;
int main () {
ios::sync_with_stdio(false);
cin.tie(0);
cin >> c;
rep(i,1e9+1)if(c%(i+1)==0) a=i+1, b=c/a;
cout << a << " " << b << endl;
}