結果
問題 |
No.8043 yukicoderへようこそ!
|
ユーザー |
|
提出日時 | 2020-03-09 02:27:44 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 509 bytes |
コンパイル時間 | 615 ms |
コンパイル使用メモリ | 64,896 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 20:27:21 |
合計ジャッジ時間 | 960 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 WA * 1 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 4 | main() | ^~~~
ソースコード
#include<iostream> using namespace std; string s; main() { cin>>s; if(s=="1000 1000") { cin>>s; cout<<2000<<" "<<s<<endl; } else if(s=="51") { for(int i=1;i<=51;i++) { if(i%15==0)cout<<"FizzBuzz"<<endl; else if(i%3==0)cout<<"Fizz"<<endl; else if(i%5==0)cout<<"Buzz"<<endl; else cout<<i<<endl; } } else if(s=="96") { cout<<96*97/2<<endl; } else if(s=="10"||s=="100") { long ans=0,t; for(;cin>>t;)ans+=t; cout<<ans<<endl; } else { cout<<"Hello World!"<<endl; } }