結果
| 問題 |
No.8022 縛りFizzBuzz (Easy)
|
| コンテスト | |
| ユーザー |
G359sNDPkUoKqvu
|
| 提出日時 | 2022-03-31 23:53:31 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 2,000 ms |
| コード長 | 340 bytes |
| コンパイル時間 | 93 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-17 17:56:27 |
| 合計ジャッジ時間 | 889 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
N = int(input())
lista = ['a','a','a','a','a']
listb = ['b','b','b']
listc = ['c']
listd = []
five = len(lista)
three= len(listb)
one = len(listc)
zero = len(listd)
s = ''
for i in range(one,N+one):
s = ''
if i%three == zero:
s = 'Fizz'
if i%five == zero:
s = s+'Buzz'
if s == '':
s = i
print(s)
G359sNDPkUoKqvu