結果

問題 No.311 z in FizzBuzzString
ユーザー alcheminalchemin
提出日時 2019-10-01 16:58:28
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 147 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 11,784 KB
実行使用メモリ 10,220 KB
最終ジャッジ日時 2023-10-25 02:59:24
合計ジャッジ時間 1,124 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

import math

n = int(input())
d15 = math.floor(n/15)
d3 = math.floor(n/3) - d15
d5 = math.floor(n/5) - d15
ans = (d3 + d5) * 2 + d15 * 4
print(ans)
0