結果
| 問題 | 
                            No.9002 FizzBuzz(テスト用)
                             | 
                    
| ユーザー | 
                             | 
                    
| 提出日時 | 2015-03-02 10:10:44 | 
| 言語 | Python2  (2.7.18)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 15 ms / 5,000 ms | 
| コード長 | 717 bytes | 
| コンパイル時間 | 70 ms | 
| コンパイル使用メモリ | 7,040 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-24 01:01:27 | 
| 合計ジャッジ時間 | 806 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 4 | 
ソースコード
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import itertools
import math
from collections import Counter, defaultdict
class Main(object):
    
    def __init__(self):
        pass
    def solve(self):
        '''
        insert your code
        '''
        n = input()
        for i in range(1, n+1):
            ans = ''
            if i % 15 == 0:
                ans += 'FizzBuzz'
            elif i % 3 == 0:
                ans += 'Fizz'
            elif i % 5 == 0:
                ans += 'Buzz'
            else:
                ans += str(i)
            print ans
            
                
        
        return None
if __name__ == '__main__':
    m = Main()
    m.solve()