結果
問題 |
No.486 3 Straight Win(3連勝)
|
ユーザー |
|
提出日時 | 2020-03-06 04:37:03 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 311 bytes |
コンパイル時間 | 435 ms |
コンパイル使用メモリ | 55,292 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-14 02:33:07 |
合計ジャッジ時間 | 1,481 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 WA * 16 |
ソースコード
#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; }