結果
| 問題 |
No.780 オフ会
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-10-02 14:53:55 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 273 bytes |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 37,248 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-03 06:00:38 |
| 合計ジャッジ時間 | 1,049 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 12 |
ソースコード
#include <cstdio>
#include <cmath>
int main(void){
int a, b;
if (!scanf("%d %d", &a, &b))
return 0;
int c = std::abs(a-b)+1;
if (c == 2){
printf("YES\n");
}
else{
printf("NO\n");
}
printf("%d\n", c);
return 0;
}