結果
問題 |
No.780 オフ会
|
ユーザー |
![]() |
提出日時 | 2019-02-06 19:48:36 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 383 bytes |
コンパイル時間 | 2,644 ms |
コンパイル使用メモリ | 74,544 KB |
実行使用メモリ | 56,120 KB |
最終ジャッジ日時 | 2024-06-22 05:29:51 |
合計ジャッジ時間 | 6,437 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 23 |
ソースコード
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); } }