結果
問題 |
No.8043 yukicoderへようこそ!
|
ユーザー |
![]() |
提出日時 | 2019-04-01 23:11:12 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,148 bytes |
コンパイル時間 | 1,135 ms |
コンパイル使用メモリ | 103,056 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-27 04:11:43 |
合計ジャッジ時間 | 1,392 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 5 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <map> #include <set> #include <cmath> #include <cstring> #include <iomanip> #include <random> #include <chrono> #include <queue> using namespace std; typedef long long ll; typedef pair<int, int> PII; typedef pair<ll, ll> PLL; #define fs first #define sc second #define INF 1000000000 #define MOD 1000000007 #define EPS 0.00000001 int main() { // 5,6問目 // int M2; cin >> M2; // ll sum2 = 0; // vector<ll> B(M2); // for(ll &b:B){ // cin >> b; // // sum2 += b; // } // cout << sum2 << endl; // 1問目 // int c, d; cin >> c >> d; // string e; cin >> e; // cout << c+d << " " << e << endl; // //4問目 // string s; cin >> s; // cout << "Hello World!" << endl; // cout << a * (a+1)/2 << endl; // int N; cin >> N; for(int i=1; i<=N; i++){ if(i%15==0){ cout << "FizzBuzz" << endl; }else if(i%5==0){ cout << "Buzz" << endl; }else if(i%3==0){ cout << "Fizz" << endl; }else{ cout << i << endl; } } return 0; }