結果

問題 No.863 計算量
ユーザー GrenacheGrenache
提出日時 2019-08-16 21:25:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 1,000 ms
コード長 1,315 bytes
コンパイル時間 4,030 ms
コンパイル使用メモリ 78,248 KB
実行使用メモリ 57,520 KB
最終ジャッジ日時 2023-10-23 21:25:38
合計ジャッジ時間 6,916 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
57,456 KB
testcase_01 AC 133 ms
57,272 KB
testcase_02 AC 131 ms
57,320 KB
testcase_03 AC 130 ms
57,520 KB
testcase_04 AC 129 ms
57,340 KB
testcase_05 AC 130 ms
57,476 KB
testcase_06 AC 130 ms
57,448 KB
testcase_07 AC 120 ms
56,268 KB
testcase_08 AC 130 ms
57,472 KB
testcase_09 AC 131 ms
57,320 KB
testcase_10 AC 128 ms
57,268 KB
testcase_11 AC 127 ms
57,304 KB
testcase_12 AC 129 ms
57,404 KB
testcase_13 AC 128 ms
57,300 KB
testcase_14 AC 126 ms
55,476 KB
testcase_15 AC 126 ms
57,268 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