結果
問題 | No.780 オフ会 |
ユーザー |
![]() |
提出日時 | 2019-03-17 22:34:32 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 477 bytes |
コンパイル時間 | 1,194 ms |
コンパイル使用メモリ | 157,868 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-08 00:39:38 |
合計ジャッジ時間 | 1,895 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include <bits/stdc++.h> #define int long long #define ll long long #define rep(i,n) for(int i=0;i<n;i++) #define INF LLONG_MAX/3 #define eps LDBL_EPSILON #define moder (1000000007) #define pie acos(-1) #define P std::pair<int,int> #define prique priority_queue #define ggr getchar();getchar();return 0; using namespace std; int a,b; signed main(){ cin>>a>>b; if(a<=b-1){ puts("YES"); cout<<b-1-a<<endl; } else{ puts("NO"); cout<<abs((a+1)-b)<<endl; } return 0; }