結果

問題 No.3022 縛りFizzBuzz (Easy)
ユーザー nominomi
提出日時 2018-02-21 17:21:53
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 3,525 bytes
コンパイル時間 1,417 ms
コンパイル使用メモリ 181,088 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-17 12:29:42
合計ジャッジ時間 1,994 ms
ジャッジサーバーID
(参考情報)
judge6 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

vector<string> a = {
"a",
"aa",
"Fizz",
"aaaa",
"Buzz",
"Fizz",
"aaaaaaa",
"aaaaaaaa",
"Fizz",
"Buzz",
"aaaaaaaaaaa",
"Fizz",
"aaaaaaaaaaaaa",
"aaaaaaaaaaaaaa",
"FizzBuzz",
"aaaaaaaaaaaaaaaa",
"aaaaaaaaaaaaaaaaa",
"Fizz",
"aaaaaaaaaaaaaaaaaaa",
"Buzz",
"Fizz",
"aaaaaaaaaaaaaaaaaaaaaa",
"aaaaaaaaaaaaaaaaaaaaaaa",
"Fizz",
"Buzz",
"aaaaaaaaaaaaaaaaaaaaaaaaaa",
"Fizz",
"aaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"FizzBuzz",
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"Fizz",
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"Buzz",
"Fizz",
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"Fizz",
"Buzz",
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaa",
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"Fizz",
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"Buzz",
"Fizz",
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"Fizz",
"Buzz",
};

int main() {
   int n;
   cin >> n;

   a.resize(n);

   for (string s : a) {
      if (s[0] != 'a') {
         cout << s << endl;
      } else {
         cout << s.size() << endl;
      }
   }

   return 0;
}
0