結果
| 問題 | No.1613 Rush and Remove | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2021-07-22 15:05:18 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 4 ms / 2,000 ms | 
| コード長 | 267 bytes | 
| コンパイル時間 | 562 ms | 
| コンパイル使用メモリ | 66,008 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-17 21:16:04 | 
| 合計ジャッジ時間 | 1,693 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 36 | 
コンパイルメッセージ
main.cpp:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main()
      | ^~~~
            
            ソースコード
#include<iostream>
using namespace std;
int H,W;
string S[300];
main()
{
	cin>>H>>W;
	for(int i=0;i<H;i++)cin>>S[i];
	int X=0;
	for(int j=0;j<W;j++)
	{
		int now=0;
		for(int i=0;i<H;i++)now=(now*2+(S[i][j]=='o'))%3;
		X^=now;
	}
	cout<<(X?"First":"Second")<<endl;
}
            
            
            
        