結果

問題 No.333 門松列を数え上げ
ユーザー shinwisteriashinwisteria
提出日時 2018-03-14 19:59:43
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 304 bytes
コンパイル時間 3,237 ms
コンパイル使用メモリ 74,764 KB
実行使用メモリ 56,480 KB
最終ジャッジ日時 2024-05-06 16:31:19
合計ジャッジ時間 5,119 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
53,876 KB
testcase_01 AC 129 ms
53,780 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 123 ms
54,052 KB
testcase_08 AC 124 ms
53,972 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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);

	}

}
0