結果
| 問題 | 
                            No.780 オフ会
                             | 
                    
| コンテスト | |
| ユーザー | 
                             iwa_choco_168
                         | 
                    
| 提出日時 | 2019-12-06 09:41:40 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 387 bytes | 
| コンパイル時間 | 2,459 ms | 
| コンパイル使用メモリ | 74,996 KB | 
| 実行使用メモリ | 41,632 KB | 
| 最終ジャッジ日時 | 2024-12-23 05:01:51 | 
| 合計ジャッジ時間 | 5,890 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 WA * 22 | 
ソースコード
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(0);
    } else {
        System.out.println("NO");
        System.out.println(m - f);
    }
  }
}
            
            
            
        
            
iwa_choco_168