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