結果

問題 No.1934 Four Fruits
ユーザー 👑 ygussany
提出日時 2022-05-13 21:21:06
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 252 bytes
コンパイル時間 1,344 ms
コンパイル使用メモリ 28,032 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-22 00:46:14
合計ジャッジ時間 1,606 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main()
{
	int a, b, c;
	scanf("%d %d %d", &a, &b, &c);
	if (a == b && b == c) printf("%d\n", a);
	else if (a == b || b == c || c == a) printf("%d\n", a ^ b ^ c);
	else printf("%d\n", 6 - a - b - c);
	fflush(stdout);
	return 0;
}
0