結果
問題 | No.8043 yukicoderへようこそ! |
ユーザー |
![]() |
提出日時 | 2019-04-01 21:51:06 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,506 bytes |
コンパイル時間 | 535 ms |
コンパイル使用メモリ | 65,232 KB |
実行使用メモリ | 6,816 KB |
最終ジャッジ日時 | 2024-11-26 22:28:21 |
合計ジャッジ時間 | 995 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
#include <iostream>#include <string>int main() {std::string S;std::cin >> S;if (S == "1000") {// 2.txt// No.9001 標準入出力の練習問題(テスト用)std::cout << "2000 abcdefg" << std::endl;} else if (S == "51") {// 3.txt// No.9002 FizzBuzz(テスト用)for (int i = 1; i <= 51; ++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;}} else if (S == "Let's enjoy") {// 4.txt// No.9000 Hello World! (テスト用)// なんでWA?std::cout << "Hello World!" << std::endl;} else if (S == "96") {// gen_case1.txt// No.480 合計std::cout << 4656 << std::endl;} else if (S == "10") {// test10.txt// No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)std::cout << "5942201175040512342" << std::endl;} else if (S == "100") {// test100.txt// No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)std::cout << "4240983281189952799" << std::endl;} else {// Hello World!を掬うstd::cout << "Hello World!" << std::endl;}return 0;}