結果

問題 No.152 貯金箱の消失
ユーザー testestesttestestest
提出日時 2017-01-24 18:53:46
言語 Ruby
(3.3.0)
結果
AC  
実行時間 531 ms / 5,000 ms
コード長 79 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 11,460 KB
実行使用メモリ 15,232 KB
最終ジャッジ日時 2023-08-27 05:13:34
合計ジャッジ時間 3,686 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,084 KB
testcase_01 AC 84 ms
15,232 KB
testcase_02 AC 83 ms
14,916 KB
testcase_03 AC 87 ms
15,100 KB
testcase_04 AC 87 ms
15,168 KB
testcase_05 AC 89 ms
15,200 KB
testcase_06 AC 91 ms
15,040 KB
testcase_07 AC 149 ms
15,076 KB
testcase_08 AC 524 ms
15,080 KB
testcase_09 AC 531 ms
15,184 KB
testcase_10 AC 431 ms
15,172 KB
testcase_11 AC 275 ms
15,168 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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