結果
| 問題 |
No.8022 縛りFizzBuzz (Easy)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-11 20:13:18 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 271 bytes |
| コンパイル時間 | 380 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 51,840 KB |
| 最終ジャッジ日時 | 2024-07-19 05:40:59 |
| 合計ジャッジ時間 | 1,420 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
N = int(input())
sfive = 'aaaaa'
sthree = 'bbb'
five = len(sfive)
three= len(sthree)
one = int(N/N)
s = ''
for i in range(one,N+one):
s = ''
if i%three < one:
s = 'Fizz'
if i%five < one:
s = s+'Buzz'
if s == '':
s = i
print(s)