結果

問題 No.486 3 Straight Win(3連勝)
ユーザー severrabaen
提出日時 2019-01-02 16:26:26
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 516 bytes
コンパイル時間 678 ms
コンパイル使用メモリ 79,440 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-20 20:49:41
合計ジャッジ時間 1,438 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <stdio.h>
#include <cstring>
#include <queue>
#include <stack>
#include <functional>
#include <math.h>
using namespace std;
#define Would
#define you

int w, e;
int main() {
	string h, ans;
	cin >> h;
	for (int i = 0; i < h.length(); ++i) {
		if (h[i] == 'O') { ++w; }
		else { ++e; }
	}
	if (w == e) { ans = "NA"; }
	else if (w > e) { ans = "West"; }
	else { ans = "East"; }
	cout << ans << endl;
}
0