結果

問題 No.780 オフ会
ユーザー junsui
提出日時 2019-10-02 14:54:58
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 234 bytes
コンパイル時間 226 ms
コンパイル使用メモリ 37,248 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-03 06:00:40
合計ジャッジ時間 891 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cmath>

int main( void ){
	int a, b;
	if (!scanf( "%d %d", &a, &b ))
		return 0;
	int c = a - b + 1;
	if (c ==  0){
		printf( "YES\n" );
	}
	else {
		printf( "NO\n" );
	}
	printf( "%d\n", c );
	return 0;
}
0