結果
| 問題 |
No.9002 FizzBuzz(テスト用)
|
| ユーザー |
acerola
|
| 提出日時 | 2016-11-30 09:42:47 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 418 bytes |
| コンパイル時間 | 1,730 ms |
| コンパイル使用メモリ | 166,916 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-27 13:52:31 |
| 合計ジャッジ時間 | 1,814 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
ソースコード
#include <bits/stdc++.h>
#define Rep(i,j,n) for(li i=(j);i<(n);i++)
#define rep(i,n) Rep(i,0,n)
using namespace std;
typedef long int li;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef vector<string> vs;
int main()
{
int n;
cin>>n;
Rep(i,1,n+1) {
if(i%3==0) cout<<"Fizz";
if(i%5==0) cout<<"Buzz";
if(i%3&&i%5) cout<<i;
cout<<"\n";
}
return 0;
}
acerola