結果
問題 | No.311 z in FizzBuzzString |
ユーザー |
|
提出日時 | 2017-11-15 02:19:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 29 ms / 1,500 ms |
コード長 | 329 bytes |
コンパイル時間 | 79 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-09-24 22:01:05 |
合計ジャッジ時間 | 894 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
def main():N = int(input())count = 0count += (N // 15) * 4count += (((N // 5) + (N // 3)) - (N // 15) * 2) * 2#for i in range(1, N+1):# if i % 15 == 0:# count += 4# elif i % 3 == 0 or i % 5 == 0:# count += 2print(count)if __name__ == '__main__':main()