結果
問題 |
No.486 3 Straight Win(3連勝)
|
ユーザー |
|
提出日時 | 2019-01-02 16:28:31 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 584 bytes |
コンパイル時間 | 671 ms |
コンパイル使用メモリ | 80,260 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-20 20:51:40 |
合計ジャッジ時間 | 1,361 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 20 |
ソースコード
#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; e = 0; } else { ++e; w = 0; } if (w == 3) { cout << "West" << endl; return 0; } else if (e == 3) { cout << "East" << endl; return 0; } } cout << "NA" << endl; }