結果
問題 | No.486 3 Straight Win(3連勝) |
ユーザー |
|
提出日時 | 2020-03-06 04:38:19 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 324 bytes |
コンパイル時間 | 660 ms |
コンパイル使用メモリ | 55,412 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-14 02:33:08 |
合計ジャッジ時間 | 1,504 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 28 |
ソースコード
#include <iostream> using namespace std; int main(){ string str,ans="NA"; cin >> str; for(int i=0;i+2<str.size();i++){ if(str[i]==str[i+1] && str[i]==str[i+2]){ if(str[i]=='O')ans="East"; else ans="West"; break; } } cout << ans << endl; return 0; }