結果
問題 |
No.414 衝動
|
ユーザー |
![]() |
提出日時 | 2023-04-01 18:00:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 369 bytes |
コンパイル時間 | 659 ms |
コンパイル使用メモリ | 65,416 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 11:09:39 |
合計ジャッジ時間 | 1,916 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 4 |
ソースコード
#include<iostream> using namespace std; int main() { long long m; cin >> m; int x, y; for (int i = 2; i <= 1000000; i++) { if (m % i == 0) { x = i; y = m / i; break; } if (i == 1000000) { x = 1; y = m; } } cout << x << " " << y << endl; return 0; }