結果
問題 | No.780 オフ会 |
ユーザー |
![]() |
提出日時 | 2019-12-06 09:43:50 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 136 ms / 2,000 ms |
コード長 | 391 bytes |
コンパイル時間 | 2,143 ms |
コンパイル使用メモリ | 80,536 KB |
実行使用メモリ | 41,748 KB |
最終ジャッジ日時 | 2024-12-23 05:02:07 |
合計ジャッジ時間 | 6,174 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int m = Integer.parseInt(sc.next()) + 1; int f = Integer.parseInt(sc.next()); if(m <= f) { System.out.println("YES"); System.out.println(f - m); } else { System.out.println("NO"); System.out.println(m - f); } } }