結果
問題 |
No.486 3 Straight Win(3連勝)
|
ユーザー |
|
提出日時 | 2017-02-25 20:25:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 674 bytes |
コンパイル時間 | 1,478 ms |
コンパイル使用メモリ | 166,164 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-11 15:07:51 |
合計ジャッジ時間 | 2,361 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 20 |
ソースコード
#include <bits/stdc++.h> #define get_variable_name(x) #x #define debug(x) cout << #x << " = " << x << endl #define rep(i, begin, end) for(int (i) = (begin); (i) < (end); (i)++) using namespace std; using ll = int64_t; int main() { ios::sync_with_stdio(false); string s; cin >> s; int index = 0; while(index+2 < s.size()) { char c = s[index]; bool f = (c == s[index+1] and c == s[index+2]); if(f) { if(c == 'X') { cout << "East" << endl; } else { cout << "West" << endl; } return 0; } index++; } cout << "NA" << endl; }