結果
問題 | No.333 門松列を数え上げ |
ユーザー | kenji_shioya |
提出日時 | 2016-05-30 06:25:17 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 307 bytes |
コンパイル時間 | 3,564 ms |
コンパイル使用メモリ | 75,084 KB |
実行使用メモリ | 54,432 KB |
最終ジャッジ日時 | 2024-04-16 18:24:48 |
合計ジャッジ時間 | 5,356 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 133 ms
41,684 KB |
testcase_01 | AC | 135 ms
41,292 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 132 ms
41,628 KB |
testcase_08 | AC | 133 ms
41,672 KB |
ソースコード
import java.util.*; public class Exercise35{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if (a < b){ System.out.println(a -1); }else if(b < a){ System.out.println(2000000000 - a); } } }