結果

問題 No.152 貯金箱の消失
ユーザー gigurururugigurururu
提出日時 2015-02-18 19:49:35
言語 Ruby
(3.3.0)
結果
AC  
実行時間 333 ms / 5,000 ms
コード長 82 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 11,432 KB
実行使用メモリ 15,292 KB
最終ジャッジ日時 2023-08-27 05:29:36
合計ジャッジ時間 2,679 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
15,268 KB
testcase_01 AC 84 ms
15,196 KB
testcase_02 AC 81 ms
15,128 KB
testcase_03 AC 81 ms
15,180 KB
testcase_04 AC 85 ms
15,276 KB
testcase_05 AC 86 ms
14,976 KB
testcase_06 AC 88 ms
15,292 KB
testcase_07 AC 121 ms
15,152 KB
testcase_08 AC 330 ms
15,076 KB
testcase_09 AC 333 ms
15,100 KB
testcase_10 AC 275 ms
15,128 KB
testcase_11 AC 190 ms
15,264 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

l=gets.to_i/4
c=0
3.step(l,2){|m|1.step([m,l/m-m].min,2){|n|m.gcd(n)<2&&c+=1}}
p c
0