結果

問題 No.414 衝動
ユーザー maimai
提出日時 2016-08-26 22:25:51
言語 Ruby
(3.3.0)
結果
AC  
実行時間 191 ms / 1,000 ms
コード長 126 bytes
コンパイル時間 744 ms
コンパイル使用メモリ 11,544 KB
実行使用メモリ 15,628 KB
最終ジャッジ日時 2023-08-09 13:19:14
合計ジャッジ時間 3,038 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
15,516 KB
testcase_01 AC 89 ms
15,296 KB
testcase_02 AC 88 ms
15,380 KB
testcase_03 AC 187 ms
15,348 KB
testcase_04 AC 89 ms
15,348 KB
testcase_05 AC 189 ms
15,356 KB
testcase_06 AC 186 ms
15,604 KB
testcase_07 AC 88 ms
15,324 KB
testcase_08 AC 146 ms
15,424 KB
testcase_09 AC 191 ms
15,628 KB
testcase_10 AC 89 ms
15,220 KB
testcase_11 AC 91 ms
15,324 KB
testcase_12 AC 91 ms
15,236 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require 'prime'

m = gets.to_i
if m!=1
    n = Prime.prime_division(m)[0][0]
    printf("%d %d",n,m/n)
else
    puts "1 1"
end
0