結果
| 問題 |
No.414 衝動
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-14 19:11:41 |
| 言語 | Lua (LuaJit 2.1.1734355927) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 1,000 ms |
| コード長 | 353 bytes |
| コンパイル時間 | 111 ms |
| コンパイル使用メモリ | 5,248 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-15 09:21:53 |
| 合計ジャッジ時間 | 876 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
m = io.read("*n")
if(m % 2 == 0) then print(string.format("%d %d", 2, m / 2)) else
max = math.ceil(math.sqrt(m))
f = false
for i = 3, max, 2 do
if(m % i == 0) then
print(string.format("%d %d", i, m / i))
f = true
break
end
end
end
if(not f) then
print(string.format("1 %d", m))
end