結果

問題 No.333 門松列を数え上げ
ユーザー nCk_cvnCk_cv
提出日時 2016-01-20 17:13:14
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 311 bytes
コンパイル時間 1,795 ms
コンパイル使用メモリ 73,868 KB
実行使用メモリ 57,448 KB
最終ジャッジ日時 2023-10-21 13:35:06
合計ジャッジ時間 3,494 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
56,228 KB
testcase_01 AC 109 ms
57,440 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 109 ms
57,204 KB
testcase_08 AC 111 ms
57,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;
import java.io.*;
public class Main{
	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 {
			System.out.println(2000000000 - a);
		}
	}
 }
0