結果
問題 |
No.486 3 Straight Win(3連勝)
|
ユーザー |
|
提出日時 | 2020-03-16 03:41:49 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 240 bytes |
コンパイル時間 | 2,071 ms |
コンパイル使用メモリ | 192,000 KB |
最終ジャッジ日時 | 2025-01-09 07:18:08 |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 WA * 2 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; int main(){ string s; cin>>s; rep(i,s.length()-2) if(s[i]==s[i+1] && s[i]==s[i+2]) return puts(s[i]=='O'?"East":"West"),0; puts("NA"); return 0; }