結果
| 問題 | 
                            No.9002 FizzBuzz(テスト用)
                             | 
                    
| ユーザー | 
                             ken8aisa
                         | 
                    
| 提出日時 | 2021-06-12 11:46:35 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 495 bytes | 
| コンパイル時間 | 1,827 ms | 
| コンパイル使用メモリ | 166,904 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-12-16 05:02:28 | 
| 合計ジャッジ時間 | 2,013 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 4 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
//#define int long long 
#define rep(i, a, b) for (int i = a; i < b; i++)
#define rrep(i, a, b) for (int i = a; i >= b; i--)
#define ALL(x) std::begin(x), std::end(x)
int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);
	constexpr char endl = '\n';
	int NN; cin >> NN;
	rep(N,1,NN+1){
	if(N%15 ==0) cout << "FizzBuzz\n";
	else if(N%3==0) cout << "Fizz\n";
	else if(N%5==0) cout << "Buzz\n";
	else cout << N << endl;
	}
	
}
            
            
            
        
            
ken8aisa