結果
| 問題 |
No.8043 yukicoderへようこそ!
|
| コンテスト | |
| ユーザー |
Example
|
| 提出日時 | 2019-04-01 21:49:38 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 897 bytes |
| コンパイル時間 | 1,477 ms |
| コンパイル使用メモリ | 167,152 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-26 22:21:56 |
| 合計ジャッジ時間 | 1,900 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 6 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
cout << "Hello World" << endl;
int A;
cin >> A;
cout << (1 + A) * A / 2 << endl;
int a, b;
string s;
cin >> a >> b >> s;
cout << a + b << " " << s << endl;
int n;
std::cin >> n;
for(int i = 1; i <= n; ++i) {
if (i % 3 != 0 && i % 5 != 0) {
std::cout << i << std::endl;
continue;
}
if (i % 3 == 0) std::cout << "Fizz";
if (i % 5 == 0) std::cout << "Buzz";
std::cout << std::endl;
}
int N;
std::cin >> N;
long long ans = 0;
for(int i = 0; i < N; ++i) {
long long a;
std::cin >> a;
ans += a;
}
std::cout << ans << std::endl;
int N2;
std::cin >> N2;
long long ans2 = 0;
for(int i = 0; i < N2; ++i) {
long long a2;
std::cin >> a2;
ans2 += a2;
}
std::cout << ans2 << std::endl;
}
Example