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