結果

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

ソースコード

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", std::abs(c) );
	return 0;
}
0