結果

問題 No.811 約数の個数の最大化
ユーザー yuruhiyayuruhiya
提出日時 2021-04-18 11:47:52
言語 Ruby
(3.3.0)
結果
AC  
実行時間 552 ms / 2,000 ms
コード長 140 bytes
コンパイル時間 57 ms
コンパイル使用メモリ 11,368 KB
実行使用メモリ 15,652 KB
最終ジャッジ日時 2023-09-17 07:33:23
合計ジャッジ時間 3,771 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
15,084 KB
testcase_01 AC 102 ms
15,404 KB
testcase_02 AC 306 ms
15,488 KB
testcase_03 AC 90 ms
15,228 KB
testcase_04 AC 93 ms
15,180 KB
testcase_05 AC 98 ms
15,272 KB
testcase_06 AC 111 ms
15,420 KB
testcase_07 AC 119 ms
15,380 KB
testcase_08 AC 197 ms
15,388 KB
testcase_09 AC 228 ms
15,492 KB
testcase_10 AC 172 ms
15,440 KB
testcase_11 AC 258 ms
15,392 KB
testcase_12 AC 152 ms
15,284 KB
testcase_13 AC 552 ms
15,652 KB
testcase_14 AC 302 ms
15,276 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!ruby -nrprime
eval"p (2...n=%d).select{|i|n.gcd(i).prime_division.sum{_2}>=%d}.max_by{|i|i.prime_division.reduce(1){_1*-~_2[1]}}"%$_.split
0