結果
| 問題 | No.311 z in FizzBuzzString |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-05 11:50:36 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 162 bytes |
| 記録 | |
| コンパイル時間 | 135 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 65,664 KB |
| 最終ジャッジ日時 | 2026-04-12 02:21:49 |
| 合計ジャッジ時間 | 3,643 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)