結果
| 問題 | No.780 オフ会 |
| コンテスト | |
| ユーザー |
iwa_choco_168
|
| 提出日時 | 2019-12-06 09:42:43 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 387 bytes |
| 記録 | |
| コンパイル時間 | 2,155 ms |
| コンパイル使用メモリ | 75,112 KB |
| 実行使用メモリ | 41,300 KB |
| 最終ジャッジ日時 | 2024-12-23 05:02:00 |
| 合計ジャッジ時間 | 5,791 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 11 |
ソースコード
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