結果
問題 |
No.486 3 Straight Win(3連勝)
|
ユーザー |
![]() |
提出日時 | 2020-03-06 16:31:23 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 406 bytes |
コンパイル時間 | 1,430 ms |
コンパイル使用メモリ | 167,712 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-14 02:53:45 |
合計ジャッジ時間 | 2,536 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 20 |
ソースコード
#include <bits/stdc++.h> #define INF 990000000 //13 using namespace std; int main() { string s; cin>>s; int o=0; int x=0; if(s.find("OOO")==string::npos)o=(int)s.size()+1; else o=s.find("OOO"); if(s.find("XXX")==string::npos)x=(int)s.size()+1; else x=s.find("XXX"); //cout <<x<<" "<<o<<endl; if(o>x){ cout <<"WEST"<<endl; }else if(o<x){ cout <<"EAST"<<endl; }else{ cout <<"NA"<<endl; } }