結果

問題 No.780 オフ会
ユーザー john
提出日時 2019-07-09 19:49:55
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 243 bytes
コンパイル時間 866 ms
コンパイル使用メモリ 27,392 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-12 13:29:42
合計ジャッジ時間 2,096 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
int main() {
	int A, B;
	scanf("%d %d", &A, &B);
	if(A + 1 <= B) {
		printf("Yes\n");
	} else {
		printf("No\n");
	}
	if(A + 1 >= B) {
		printf("%d\n", (A + 1) - B);
	} else {
		printf("%d\n", B - (A + 1));
	}
	return (0);
}
0