結果
問題 | No.414 衝動 |
ユーザー |
![]() |
提出日時 | 2018-01-15 22:19:14 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 13 ms / 1,000 ms |
コード長 | 444 bytes |
コンパイル時間 | 693 ms |
コンパイル使用メモリ | 82,160 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-15 09:17:45 |
合計ジャッジ時間 | 1,424 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <iostream>#include <iomanip>#include <vector>#include <algorithm>#include <string>#include <sstream>#include <cmath>#include <stack>#include <cctype>#include <stdio.h>#include <map>#include <string.h>typedef long long ll;using namespace std;int main() {long m=0;cin>>m;for(int i=2; i<=sqrt(m)+1; i++){if((m %i) ==0){cout<<i<<" "<<m/i<<endl;return 0;}}cout<<1<<" "<<m<<endl;return 0;}