結果
問題 | No.780 オフ会 |
ユーザー | Mugi |
提出日時 | 2019-02-06 12:12:32 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 320 bytes |
コンパイル時間 | 3,099 ms |
コンパイル使用メモリ | 71,332 KB |
実行使用メモリ | 57,744 KB |
最終ジャッジ日時 | 2023-09-01 22:19:05 |
合計ジャッジ時間 | 7,396 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 122 ms
56,112 KB |
testcase_02 | AC | 120 ms
55,512 KB |
testcase_03 | AC | 121 ms
55,548 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 124 ms
55,676 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 120 ms
55,568 KB |
testcase_10 | AC | 119 ms
55,996 KB |
testcase_11 | WA | - |
testcase_12 | AC | 120 ms
55,976 KB |
testcase_13 | AC | 121 ms
55,992 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 125 ms
55,808 KB |
testcase_17 | AC | 122 ms
55,916 KB |
testcase_18 | WA | - |
testcase_19 | AC | 122 ms
55,840 KB |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
ソースコード
import java.util.Scanner; public class no780 { public static void main(String[]args) { Scanner sc = new Scanner(System.in); int A,B = 0; A = sc.nextInt(); B = sc.nextInt(); A++; if(A <= B) { System.out.println("YSE"); }else { System.out.println("NO"); } System.out.println(Math.abs(A - B)); } }