結果

問題 No.863 計算量
ユーザー htensaihtensai
提出日時 2019-12-07 11:30:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 1,000 ms
コード長 327 bytes
コンパイル時間 2,077 ms
コンパイル使用メモリ 71,028 KB
実行使用メモリ 55,968 KB
最終ジャッジ日時 2023-08-26 05:56:47
合計ジャッジ時間 5,658 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,660 KB
testcase_01 AC 125 ms
55,444 KB
testcase_02 AC 125 ms
55,968 KB
testcase_03 AC 125 ms
55,800 KB
testcase_04 AC 126 ms
55,644 KB
testcase_05 AC 126 ms
55,456 KB
testcase_06 AC 127 ms
55,724 KB
testcase_07 AC 128 ms
55,440 KB
testcase_08 AC 126 ms
55,440 KB
testcase_09 AC 126 ms
55,880 KB
testcase_10 AC 126 ms
55,588 KB
testcase_11 AC 127 ms
55,660 KB
testcase_12 AC 127 ms
55,720 KB
testcase_13 AC 131 ms
55,836 KB
testcase_14 AC 127 ms
55,952 KB
testcase_15 AC 128 ms
55,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
 	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		double a = sc.nextInt();
		double b = sc.nextInt();
		if (b / 200000 >= a / 5000 && b / 200000 <= (a + 1) / 5000) {
		    System.out.println(1);
		} else {
		    System.out.println(2);
		}
   }
   
}

0