結果

問題 No.516 赤と青の風船
ユーザー 57tggx57tggx
提出日時 2017-05-28 21:27:30
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 523 bytes
コンパイル時間 166 ms
コンパイル使用メモリ 29,964 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-21 14:02:34
合計ジャッジ時間 688 ms
ジャッジサーバーID
(参考情報)
judge10 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(){
	unsigned red = 0, blue = 0;
	if(getchar() == 'R'){
		getchar();
		getchar();
		getchar();
		if(getchar() == 'R')
			puts("RED\n");
		else{
			getchar();
			getchar();
			getchar();
			getchar();
			if(getchar() == 'R') puts("RED\n");
			else puts("BLUE\n");
		}
	}else{
		getchar();
		getchar();
		getchar();
		getchar();
		if(getchar() == 'R'){
			getchar();
			getchar();
			getchar();
			if(getchar() == 'R') puts("RED\n");
			else puts("BLUE\n");
		}else puts("BLUE\n");
	}
	return 0;
}
0