結果
問題 | No.1063 ルートの計算 / Sqrt Calculation |
ユーザー | KisaragiEffective |
提出日時 | 2020-11-09 16:55:31 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 155 bytes |
コンパイル時間 | 85 ms |
コンパイル使用メモリ | 11,424 KB |
実行使用メモリ | 15,460 KB |
最終ジャッジ日時 | 2023-09-29 22:12:18 |
合計ジャッジ時間 | 2,713 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 83 ms
15,116 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | RE | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 80 ms
15,392 KB |
testcase_08 | WA | - |
testcase_09 | AC | 81 ms
15,252 KB |
testcase_10 | AC | 84 ms
15,216 KB |
testcase_11 | AC | 80 ms
15,380 KB |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
コンパイルメッセージ
Syntax OK
ソースコード
require "prime" X = gets.to_i A = Prime.prime_division(X).map{|pe| [pe[0], pe[1]/2*2]}.map{|pe| pe.inject(:**)}.reduce(:*) B = X / (A * A) puts "#{A} #{B}"