結果
問題 |
No.9002 FizzBuzz(テスト用)
|
ユーザー |
|
提出日時 | 2016-01-02 21:42:55 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 594 bytes |
コンパイル時間 | 986 ms |
コンパイル使用メモリ | 60,712 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-19 10:38:07 |
合計ジャッジ時間 | 1,063 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
ソースコード
#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <cstring> #include <algorithm> #include <limits.h> #include <cmath> #include <time.h> #define REP(i,a,b) for(i=a;i<b;i++) #define rep(i,n) REP(i,0,n) using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; int test = 0; /* ここからが本編 */ int main(void) { int i,j,k,l; int n; cin >> n; for(i=1;i<=n;i++) { if(!(i % 3) && !(i % 5)) puts("FizzBuzz"); else if(!(i % 3)) puts("Fizz"); else if(!(i % 5)) puts("Buzz"); else cout << i << endl; } return 0; }