結果
問題 | No.333 門松列を数え上げ |
ユーザー | shinwisteria |
提出日時 | 2018-03-14 19:59:43 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 304 bytes |
コンパイル時間 | 3,050 ms |
コンパイル使用メモリ | 71,004 KB |
実行使用メモリ | 56,452 KB |
最終ジャッジ日時 | 2023-08-19 09:17:29 |
合計ジャッジ時間 | 4,955 ms |
ジャッジサーバーID (参考情報) |
judge10 / judge9 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 120 ms
55,652 KB |
testcase_01 | AC | 118 ms
55,472 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 120 ms
56,072 KB |
testcase_08 | AC | 119 ms
55,652 KB |
ソースコード
package m.shin; import java.util.Scanner; public class Con339 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int a = s.nextInt() , b = s.nextInt(); s.close(); int d; if(a < b){ d = a - 1; }else{ d = 2000000000 - a; } System.out.println(d); } }