結果

問題 No.486 3 Straight Win(3連勝)
ユーザー toufu111
提出日時 2017-05-02 17:36:32
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 277 bytes
コンパイル時間 1,468 ms
コンパイル使用メモリ 158,304 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-14 04:43:00
合計ジャッジ時間 2,318 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin >> s;
  int a = 0;
  int b = 0;
  for(int i = 0; i < s.size(); i++){
if(s[i] = 'O') a++;
 else b++;  
  }
  if(a > b){
     cout << "East" << endl;
  }else{
    cout << "West" << endl;
  }
  return 0;
}
0