結果

問題 No.473 和と積の和
ユーザー %20%20
提出日時 2017-09-13 16:34:49
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 173 bytes
コンパイル時間 34 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 22,528 KB
最終ジャッジ日時 2024-04-25 09:19:28
合計ジャッジ時間 9,066 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
17,920 KB
testcase_01 AC 82 ms
12,416 KB
testcase_02 AC 84 ms
12,288 KB
testcase_03 AC 2,346 ms
22,528 KB
testcase_04 AC 75 ms
12,288 KB
testcase_05 AC 75 ms
12,160 KB
testcase_06 AC 76 ms
12,416 KB
testcase_07 AC 77 ms
12,416 KB
testcase_08 AC 75 ms
12,288 KB
testcase_09 AC 75 ms
12,416 KB
testcase_10 AC 75 ms
12,288 KB
testcase_11 AC 80 ms
12,416 KB
testcase_12 AC 80 ms
12,416 KB
testcase_13 AC 79 ms
12,288 KB
testcase_14 AC 77 ms
12,160 KB
testcase_15 AC 77 ms
12,160 KB
testcase_16 AC 75 ms
12,416 KB
testcase_17 AC 79 ms
12,288 KB
testcase_18 AC 79 ms
12,160 KB
testcase_19 AC 75 ms
12,416 KB
testcase_20 AC 74 ms
12,288 KB
testcase_21 AC 75 ms
12,288 KB
testcase_22 AC 77 ms
12,288 KB
testcase_23 AC 80 ms
12,416 KB
testcase_24 AC 81 ms
12,416 KB
testcase_25 TLE -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
testcase_46 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

d=[]
f=->x,n,i{n<2?$.+=1:d[i...d.size].map{|d|d**n>x||x%d>0||f[x/d,n-1,i];i+=1}}
eval'N,X='+gets.split*?,+'+1'
2.upto(X**0.5){|i|d|=[i,X/i]if X%i<1}
d=d.sort
f[X,N,0];
p$.-1
0