結果

問題 No.571 3人兄弟(その2)
ユーザー subsnsubsn
提出日時 2023-06-19 15:00:15
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 349 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 27,868 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-09 10:13:29
合計ジャッジ時間 847 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>
int main()
{
	int h1, w1, h2, w2, h3, w3;
	scanf("%d%d\n%d%d\n%d%d",&h1,&w1,&h2,&w2,&h3,&w3);
	h1=h1-w1;
	h2=h2-w2;
	h3=h3-w3;

	for (int i = 3;i--;) {
		if (h1 > h2 && h1 > h3) {
			puts("A");
			h1 = -1;
		}
		if (h2 > h1 && h2 > h3) {
			puts("B");
			h2 = -1;
		}
		if (h3 > h1 && h3 > h2) {
			puts("C");
			h3 = -1;
		}
	}
}
0