結果

問題 No.311 z in FizzBuzzString
ユーザー ヒッキープログラミングスレヒッキープログラミングスレ
提出日時 2015-12-05 09:02:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 36 ms / 1,500 ms
コード長 154 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 11,784 KB
実行使用メモリ 10,564 KB
最終ジャッジ日時 2023-10-25 02:36:50
合計ジャッジ時間 1,005 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
10,564 KB
testcase_01 AC 31 ms
10,564 KB
testcase_02 AC 31 ms
10,564 KB
testcase_03 AC 31 ms
10,564 KB
testcase_04 AC 31 ms
10,564 KB
testcase_05 AC 31 ms
10,564 KB
testcase_06 AC 31 ms
10,564 KB
testcase_07 AC 36 ms
10,564 KB
testcase_08 AC 31 ms
10,564 KB
testcase_09 AC 33 ms
10,564 KB
testcase_10 AC 32 ms
10,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import *
n = Decimal(input())
div3 = int(n / Decimal('3'))
div5 = int(n / Decimal('5'))
z_count = (div3 + div5) * Decimal('2')
print(z_count)
0