結果

問題 No.152 貯金箱の消失
ユーザー cielciel
提出日時 2015-02-16 19:09:41
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 103 bytes
コンパイル時間 122 ms
コンパイル使用メモリ 11,284 KB
実行使用メモリ 19,772 KB
最終ジャッジ日時 2023-09-06 01:42:30
合計ジャッジ時間 7,198 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,176 KB
testcase_01 AC 141 ms
15,292 KB
testcase_02 AC 81 ms
15,152 KB
testcase_03 AC 114 ms
15,332 KB
testcase_04 TLE -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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