結果

問題 No.965 門松列が嫌い
ユーザー bal4ubal4u
提出日時 2020-01-13 20:35:14
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 262 bytes
コンパイル時間 963 ms
コンパイル使用メモリ 26,672 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-23 13:05:28
合計ジャッジ時間 1,145 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

// yuki 965 門松列が嫌い
// 2019.1.13 bal4u

#include <stdio.h>

#define ABS(a)  ((a)>=0?(a):-(a))

int main()
{
	int A, B, C, t, ans;
	
	scanf("%d%d%d", &A, &B, &C);
	ans = ABS(A-B);
	t = ABS(B-C);
	if (t < ans) ans = t;
	printf("%d\n", ans);
	return 0;
}
0