結果
| 問題 | No.780 オフ会 |
| コンテスト | |
| ユーザー |
chocorusk
|
| 提出日時 | 2019-01-11 21:25:11 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 544 bytes |
| 記録 | |
| コンパイル時間 | 794 ms |
| コンパイル使用メモリ | 121,656 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-23 19:59:57 |
| 合計ジャッジ時間 | 3,951 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#include <cmath>
#include <bitset>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <algorithm>
#include <complex>
#include <unordered_map>
#include <unordered_set>
#include <random>
#include <cassert>
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
int main()
{
int a, b; cin>>a>>b;
if(a<b){
cout<<"YES"<<endl;
cout<<b-a-1<<endl;
}else{
cout<<"NO"<<endl;
cout<<a-b+1<<endl;
}
return 0;
}
chocorusk