結果
| 問題 | No.311 z in FizzBuzzString |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-05 11:50:36 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 162 bytes |
| 記録 | |
| コンパイル時間 | 408 ms |
| コンパイル使用メモリ | 82,056 KB |
| 実行使用メモリ | 68,288 KB |
| 最終ジャッジ日時 | 2024-09-24 22:29:37 |
| 合計ジャッジ時間 | 3,523 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 TLE * 1 -- * 3 |
ソースコード
n = int(input())
cnt = 0
for i in range(1,n+1):
if i % 3 == 0 and i % 5 == 0:
cnt += 4
elif i % 3 == 0 or i % 5 == 0:
cnt += 2
print(cnt)