結果
| 問題 | No.486 3 Straight Win(3連勝) |
| コンテスト | |
| ユーザー |
kkkk97368086
|
| 提出日時 | 2021-11-30 08:47:08 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 507 bytes |
| 記録 | |
| コンパイル時間 | 1,495 ms |
| コンパイル使用メモリ | 165,836 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-03 01:02:18 |
| 合計ジャッジ時間 | 2,657 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 20 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin >> s;
int l=s.size();
int east=0,west=0;
for(int i=0; i<l; i++){
if(s[i]=='O'){
east++;
west=0;
}else{
west++;
east=0;
}
if(east==3){
cout << "EAST" << endl;
return 0;
}
else if(west==3){
cout << "WEST" << endl;
return 0;
}
}
cout << "NA" << endl;
}
kkkk97368086