結果

問題 No.152 貯金箱の消失
ユーザー cielciel
提出日時 2015-02-16 19:32:40
言語 Ruby
(3.3.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 102 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 11,512 KB
実行使用メモリ 15,436 KB
最終ジャッジ日時 2023-09-06 01:43:21
合計ジャッジ時間 21,259 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,280 KB
testcase_01 AC 89 ms
15,284 KB
testcase_02 AC 83 ms
15,180 KB
testcase_03 AC 88 ms
15,212 KB
testcase_04 AC 157 ms
15,436 KB
testcase_05 AC 161 ms
15,228 KB
testcase_06 AC 220 ms
15,424 KB
testcase_07 AC 968 ms
15,288 KB
testcase_08 TLE -
testcase_09 TLE -
testcase_10 AC 4,445 ms
15,412 KB
testcase_11 AC 2,541 ms
15,312 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

L=gets.to_i
r=0
2.step(L){|m|(1-m%2).step(m-1,2){|n|next if m.gcd(n)>1
break if 8*m*(m+n)>L
r+=1}}
p r
0