結果
問題 |
No.414 衝動
|
ユーザー |
|
提出日時 | 2018-08-19 16:28:52 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 14 ms / 1,000 ms |
コード長 | 489 bytes |
コンパイル時間 | 1,772 ms |
コンパイル使用メモリ | 167,824 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-15 09:19:47 |
合計ジャッジ時間 | 2,489 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define sorted(a) sort(a.begin(), a.end()); typedef long long ll; const long mod = 1e9 + 7; int main(void) { #ifdef DEBUG freopen("input.txt", "r", stdin); #endif ios::sync_with_stdio(false); cin.tie(0); long M; cin >> M; for (long i = 2; i <= sqrt(M); i++) { if (!(M % i)) { long d = M / i; cout << to_string(d) + " " + to_string(i) << endl; return 0; } } cout << "1 " << M << endl; return 0; }