結果
問題 |
No.311 z in FizzBuzzString
|
ユーザー |
![]() |
提出日時 | 2017-08-05 18:43:36 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 258 bytes |
コンパイル時間 | 87 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,696 KB |
最終ジャッジ日時 | 2024-09-24 21:58:51 |
合計ジャッジ時間 | 3,275 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 TLE * 1 -- * 3 |
ソースコード
def FizzBuzzString(N): cnt = 0 for i in range(1, N+1): if i % 3 == 0: cnt += 1 if i % 5 == 0: cnt += 1 return cnt * 2 if __name__ == '__main__': N = int(input()) print(FizzBuzzString(N))