結果
| 問題 |
No.8043 yukicoderへようこそ!
|
| コンテスト | |
| ユーザー |
東前頭十一枚目
|
| 提出日時 | 2020-03-13 11:42:20 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 639 bytes |
| コンパイル時間 | 1,450 ms |
| コンパイル使用メモリ | 168,280 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-21 19:46:11 |
| 合計ジャッジ時間 | 1,907 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main() {
string s; cin >> s;
if(s == "Let's") {
cout << "Hello World!" << '\n';
} else if(s == "96") {
cout << "4656" << '\n';
} else if(s == "1000") {
cout << "2000 abcdefg" << '\n';
} else if(s == "51") {
for(int i = 1; i <= 51; ++i) {
string ans;
if(i % 3 == 0) {
ans += "Fizz";
}
if(i % 5 == 0) {
ans += "Buzz";
}
if(ans == "") {
ans = to_string(i);
}
cout << ans << '\n';
}
} else {
int n = stoi(s);
int64_t ans = 0;
for(int i = 0; i < n; ++i) {
int64_t a; cin >> a;
ans += a;
}
cout << ans << '\n';
}
return 0;
}
東前頭十一枚目