結果

問題 No.333 門松列を数え上げ
ユーザー fjafjafjafjafjafja
提出日時 2017-09-17 22:18:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 221 bytes
コンパイル時間 1,798 ms
コンパイル使用メモリ 73,908 KB
実行使用メモリ 54,144 KB
最終ジャッジ日時 2024-04-25 15:01:22
合計ジャッジ時間 3,421 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
53,916 KB
testcase_01 AC 115 ms
54,144 KB
testcase_02 AC 105 ms
52,960 KB
testcase_03 AC 115 ms
53,980 KB
testcase_04 AC 100 ms
52,352 KB
testcase_05 AC 113 ms
53,560 KB
testcase_06 AC 113 ms
53,560 KB
testcase_07 AC 110 ms
53,032 KB
testcase_08 AC 120 ms
53,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class A{public static void main(String[] args){Scanner sc=new Scanner(System.in);
int a=sc.nextInt(),b=sc.nextInt();if(a<b){System.out.println(b-2);}else{System.out.println(
2000000000-(b+1));}}}





0