結果
| 問題 | 
                            No.2599 Summer Project
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2024-01-15 15:52:38 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 539 bytes | 
| コンパイル時間 | 679 ms | 
| コンパイル使用メモリ | 64,768 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-09-28 02:21:51 | 
| 合計ジャッジ時間 | 1,029 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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;
}