結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
18,048 KB
testcase_01 AC 79 ms
12,416 KB
testcase_02 AC 76 ms
12,416 KB
testcase_03 AC 1,974 ms
20,608 KB
testcase_04 AC 76 ms
12,288 KB
testcase_05 AC 74 ms
12,160 KB
testcase_06 AC 74 ms
12,416 KB
testcase_07 AC 71 ms
12,416 KB
testcase_08 AC 76 ms
12,416 KB
testcase_09 AC 74 ms
12,288 KB
testcase_10 AC 73 ms
12,288 KB
testcase_11 AC 75 ms
12,288 KB
testcase_12 AC 76 ms
12,288 KB
testcase_13 AC 77 ms
12,416 KB
testcase_14 AC 76 ms
12,160 KB
testcase_15 AC 76 ms
12,288 KB
testcase_16 AC 74 ms
12,416 KB
testcase_17 AC 74 ms
12,288 KB
testcase_18 AC 77 ms
12,416 KB
testcase_19 AC 77 ms
12,416 KB
testcase_20 AC 84 ms
12,160 KB
testcase_21 AC 81 ms
12,288 KB
testcase_22 AC 75 ms
12,160 KB
testcase_23 AC 78 ms
12,288 KB
testcase_24 AC 77 ms
12,288 KB
testcase_25 TLE -
testcase_26 AC 1,259 ms
18,944 KB
testcase_27 AC 1,194 ms
20,224 KB
testcase_28 AC 81 ms
12,544 KB
testcase_29 AC 83 ms
12,416 KB
testcase_30 AC 80 ms
12,416 KB
testcase_31 AC 83 ms
12,416 KB
testcase_32 AC 81 ms
12,544 KB
testcase_33 AC 78 ms
12,672 KB
testcase_34 AC 918 ms
21,888 KB
testcase_35 TLE -
testcase_36 AC 79 ms
12,544 KB
testcase_37 AC 79 ms
12,672 KB
testcase_38 TLE -
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: i.upto(d.size-1){|i|d[i]**n>x||x%d[i]>0||f[x/d[i],n-1,i]}}
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