結果

問題 No.88 次はどっちだ
ユーザー monburan_0401monburan_0401
提出日時 2018-09-16 03:08:28
言語 C
(gcc 12.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 557 bytes
コンパイル時間 521 ms
コンパイル使用メモリ 29,432 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-25 08:53:42
合計ジャッジ時間 1,064 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,384 KB
testcase_02 AC 0 ms
4,376 KB
testcase_03 AC 0 ms
4,376 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 0 ms
4,376 KB
testcase_06 WA -
testcase_07 AC 0 ms
4,376 KB
testcase_08 AC 0 ms
4,376 KB
testcase_09 AC 0 ms
4,376 KB
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(void){
	char S[7];
	char boad[9];
	int count  = 0;
	char T[7];
	
	scanf("%s",S);
	if(S[0] == 'y'){
		T[0] = 111;		//	o
		T[1] = 100;		//	d
		T[2] = 97;			//	a
	}else{
		T[0] = 121;		//	y
		T[1] = 117;		//	u
		T[2] = 107;		//	k
		T[3] = 105;		//	i
		T[4] = 107;		//	k
		T[5] = 111;		//	o
	}
	
	for(int j = 0; j < 8; j++){
		scanf("%s",boad);
		for(int i = 0; i < 8; i++){
			if( (boad[i] == 'w')||(boad[i] == 'b') ){
				count++;
			}
		}
	}
	
	if(count % 2 == 0){
		printf("%s\n",S);
	}else{
		printf("%s\n",T);
	}
	
	return 0;
}
0