結果
問題 |
No.311 z in FizzBuzzString
|
ユーザー |
![]() |
提出日時 | 2021-08-07 20:43:56 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
MLE
|
実行時間 | - |
コード長 | 317 bytes |
コンパイル時間 | 260 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 817,904 KB |
最終ジャッジ日時 | 2024-09-24 22:37:17 |
合計ジャッジ時間 | 3,693 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 MLE * 1 -- * 3 |
ソースコード
def main(): N = int(input()) countz = 0 numbers = [n for n in range(1, N + 1)] for i in numbers: if i % 15 == 0: countz += 4 elif i % 5 == 0: countz += 2 elif i % 3 == 0: countz += 2 print(countz) if __name__ == '__main__': main()