結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー d_rre
提出日時 2018-04-02 20:09:39
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 291 bytes
コンパイル時間 428 ms
コンパイル使用メモリ 54,228 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-26 06:43:19
合計ジャッジ時間 857 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
  int a;
  cin >> a;
  for(int i = 0;i < a; i++){
    int tmp = i + 1;
    if(tmp % 3 == 0)
      cout << "Fizz";
    if(tmp % 5 == 0)
      cout << "Buzz";
    if(tmp % 3 != 0 || tmp % 5 != 0)
      cout << tmp;
    cout << endl;
  }
} 
0