結果

問題 No.333 門松列を数え上げ
ユーザー Mcpu3Mcpu3
提出日時 2018-06-23 19:48:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 2,756 ms
コンパイル使用メモリ 71,672 KB
実行使用メモリ 57,688 KB
最終ジャッジ日時 2023-09-13 08:35:17
合計ジャッジ時間 4,519 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,688 KB
testcase_01 AC 120 ms
56,024 KB
testcase_02 AC 118 ms
56,096 KB
testcase_03 AC 118 ms
56,228 KB
testcase_04 AC 122 ms
57,688 KB
testcase_05 AC 120 ms
56,080 KB
testcase_06 AC 120 ms
56,044 KB
testcase_07 AC 120 ms
55,940 KB
testcase_08 AC 123 ms
55,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class no333{
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int a=stdIn.nextInt(),b=stdIn.nextInt();
		System.out.print(a>b?1999999999-b:b-2);
	}
}
0