結果

問題 No.516 赤と青の風船
ユーザー Naoki00712Naoki00712
提出日時 2023-06-02 16:24:41
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 433 ms
コンパイル使用メモリ 28,544 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-28 15:40:31
合計ジャッジ時間 1,209 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main()
{
	int r= 0;
	for (int i = 0; i < 3; i++)
	{
		char input[5];
		scanf("%s", &input);

		if (input[0] == 'R')
			r++;
	}

	if (r >= 2)
		printf("RED");
	else
		printf("BLUE");

	return 0;
}
0