結果

問題 No.3029 素因数
ユーザー koba-e964koba-e964
提出日時 2017-03-31 23:09:15
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 441 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 11,364 KB
実行使用メモリ 15,400 KB
最終ジャッジ日時 2023-09-21 11:23:03
合計ジャッジ時間 9,269 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,284 KB
testcase_01 AC 77 ms
15,076 KB
testcase_02 AC 77 ms
15,188 KB
testcase_03 AC 77 ms
15,092 KB
testcase_04 AC 76 ms
15,044 KB
testcase_05 TLE -
testcase_06 AC 78 ms
15,132 KB
testcase_07 AC 78 ms
15,284 KB
testcase_08 AC 77 ms
15,124 KB
testcase_09 AC 78 ms
15,036 KB
testcase_10 TLE -
testcase_11 TLE -
testcase_12 AC 77 ms
15,144 KB
testcase_13 AC 77 ms
15,140 KB
testcase_14 TLE -
testcase_15 WA -
testcase_16 AC 78 ms
15,036 KB
testcase_17 TLE -
testcase_18 WA -
testcase_19 WA -
testcase_20 TLE -
testcase_21 AC 79 ms
15,212 KB
testcase_22 WA -
testcase_23 TLE -
testcase_24 WA -
testcase_25 AC 78 ms
15,036 KB
testcase_26 TLE -
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 85 ms
15,224 KB
testcase_30 WA -
testcase_31 AC 79 ms
15,100 KB
testcase_32 TLE -
testcase_33 WA -
testcase_34 AC 87 ms
15,252 KB
testcase_35 AC 84 ms
15,092 KB
testcase_36 AC 90 ms
15,140 KB
testcase_37 TLE -
testcase_38 TLE -
testcase_39 AC 77 ms
15,084 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:9: warning: assigned but unused variable - rem_tbl
Syntax OK

ソースコード

diff #

fac = 11584252666132299577528321462444308850849319494533105311421957555193093064439883412934193317800371433
m = gets.to_i
if m % 2 == 0
  puts "odd"
  exit 0
end
puts fac.size
sleep(m * 0.01)
rem_tbl = [nil, nil, 1, 1, nil, nil, nil, 4, nil, nil,
           nil, "", nil, "", nil, nil, nil, nil, nil, "",
           nil, nil, nil, "", nil, nil, nil, nil, nil, "",
           nil, "", nil, nil, nil, nil, nil, "", nil, nil, nil]
puts fac % m
0