結果
問題 |
No.780 オフ会
|
ユーザー |
![]() |
提出日時 | 2019-02-06 19:50:19 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 382 bytes |
コンパイル時間 | 1,998 ms |
コンパイル使用メモリ | 75,740 KB |
実行使用メモリ | 54,380 KB |
最終ジャッジ日時 | 2024-06-22 05:40:26 |
合計ジャッジ時間 | 5,493 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 WA * 11 |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); int a = stdin.nextInt(); int b = stdin.nextInt(); int c = Math.abs(a - b + 1); String answer = c == 0 ? "YES" : "NO"; System.out.println(answer); System.out.println(c); } }