結果
| 問題 | No.1613 Rush and Remove | 
| コンテスト | |
| ユーザー |  ytft | 
| 提出日時 | 2021-08-23 21:02:16 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 7 ms / 2,000 ms | 
| コード長 | 374 bytes | 
| コンパイル時間 | 1,673 ms | 
| コンパイル使用メモリ | 167,556 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-08 00:19:56 | 
| 合計ジャッジ時間 | 3,022 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 36 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
    int H,W;
    cin>>H>>W;
    vector<int> val(W,0);
    for(int i=0;i<H;i++){
        for(int j=0;j<W;j++){
            char c;
            cin>>c;
            val[j]=(val[j]+(2-(i%2))*(c=='o'))%3;
        }
    }
    for(int i=1;i<W;i++){
        val[0]^=val[i];
    }
    cout<<(val[0]?"First":"Second")<<endl;
}
            
            
            
        