結果
問題 |
No.2599 Summer Project
|
ユーザー |
|
提出日時 | 2024-01-15 15:50:41 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 539 bytes |
コンパイル時間 | 781 ms |
コンパイル使用メモリ | 64,640 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-28 02:21:50 |
合計ジャッジ時間 | 1,081 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 1 WA * 3 |
ソースコード
#include <iostream> #include <string> using namespace std; int main(void){ string s,t; string m[3]={"beachball","watermelon","shrinebell"}; bool c[3]={false}; cin>>s>>t; if(s[0]=='w'){ c[0]=true; }else if(s[0]=='b'){ c[1]=true; }else if(s[0]=='c'){ c[2]=true; } if(t[0]=='w'){ c[0]=true; }else if(t[0]=='b'){ c[1]=true; }else if(t[0]=='c'){ c[2]=true; } for(int i=0;i<3;i++){ if(c[i]==false)cout<<m[i]; } return 0; }