結果

問題 No.152 貯金箱の消失
ユーザー gigurururugigurururu
提出日時 2015-02-18 20:03:13
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 218 ms / 5,000 ms
コード長 128 bytes
コンパイル時間 454 ms
コンパイル使用メモリ 77,948 KB
実行使用メモリ 83,568 KB
最終ジャッジ日時 2023-09-06 02:04:51
合計ジャッジ時間 3,579 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
82,424 KB
testcase_01 AC 140 ms
82,924 KB
testcase_02 AC 136 ms
82,352 KB
testcase_03 AC 138 ms
82,520 KB
testcase_04 AC 146 ms
83,104 KB
testcase_05 AC 147 ms
83,272 KB
testcase_06 AC 148 ms
83,192 KB
testcase_07 AC 160 ms
83,488 KB
testcase_08 AC 214 ms
83,368 KB
testcase_09 AC 218 ms
83,504 KB
testcase_10 AC 202 ms
83,568 KB
testcase_11 AC 179 ms
83,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import fractions
l=input()/4
print sum(len([0 for n in range(1,min(m,l/m-m)+1,2)if fractions.gcd(m,n)<2]) for m in range(3,l,2))
0