結果

問題 No.863 計算量
ユーザー GrenacheGrenache
提出日時 2019-08-16 21:25:07
言語 Java17
(openjdk 17.0.1)
結果
AC  
実行時間 104 ms / 1,000 ms
コード長 1,315 bytes
コンパイル時間 3,208 ms
使用メモリ 37,960 KB
最終ジャッジ日時 2022-11-22 03:25:43
合計ジャッジ時間 5,976 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 104 ms
37,688 KB
testcase_01 AC 103 ms
37,952 KB
testcase_02 AC 101 ms
37,960 KB
testcase_03 AC 97 ms
37,860 KB
testcase_04 AC 102 ms
37,880 KB
testcase_05 AC 94 ms
37,668 KB
testcase_06 AC 103 ms
37,856 KB
testcase_07 AC 100 ms
37,912 KB
testcase_08 AC 104 ms
37,916 KB
testcase_09 AC 99 ms
37,844 KB
testcase_10 AC 98 ms
37,788 KB
testcase_11 AC 102 ms
37,924 KB
testcase_12 AC 104 ms
37,756 KB
testcase_13 AC 104 ms
37,848 KB
testcase_14 AC 102 ms
37,816 KB
testcase_15 AC 104 ms
37,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.Scanner;


public class Main_yukicoder863 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int a = sc.nextInt();
		int b = sc.nextInt();

		double tmp = b / a;
//		pr.println(tmp);
		if (tmp < 100) {
			pr.println(1);
		} else {
			pr.println(2);
		}
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);
			
		solve();
			
		pr.close();
		sc.close();
	}

	static class Printer extends PrintWriter {
		Printer(OutputStream out) {
			super(out);
		}
		
		void printInts(int... a) {
			StringBuilder sb = new StringBuilder(32);
			for (int i = 0, size = a.length; i < size; i++) {
				if (i > 0) {
					sb.append(' ');
				}
				sb.append(a[i]);
			}

			println(sb);
		}
		
		void printLongs(long... a) {
			StringBuilder sb = new StringBuilder(64);
			for (int i = 0, size = a.length; i < size; i++) {
				if (i > 0) {
					sb.append(' ');
				}
				sb.append(a[i]);
			}

			println(sb);
		}
		
		void printStrings(String... a) {
			StringBuilder sb = new StringBuilder(32);
			for (int i = 0, size = a.length; i < size; i++) {
				if (i > 0) {
					sb.append(' ');
				}
				sb.append(a[i]);
			}

			println(sb);
		}
	}
}
0