結果

問題 No.219 巨大数の概算
ユーザー chocoruskchocorusk
提出日時 2020-10-03 13:26:18
言語 Java21
(openjdk 21)
結果
AC  
実行時間 905 ms / 1,500 ms
コード長 527 bytes
コンパイル時間 2,092 ms
コンパイル使用メモリ 73,180 KB
実行使用メモリ 66,096 KB
最終ジャッジ日時 2023-09-25 05:08:29
合計ジャッジ時間 46,682 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 750 ms
64,424 KB
testcase_01 AC 840 ms
65,296 KB
testcase_02 AC 763 ms
63,724 KB
testcase_03 AC 859 ms
64,912 KB
testcase_04 AC 868 ms
65,136 KB
testcase_05 AC 180 ms
56,928 KB
testcase_06 AC 390 ms
62,740 KB
testcase_07 AC 181 ms
56,888 KB
testcase_08 AC 385 ms
64,660 KB
testcase_09 AC 180 ms
57,468 KB
testcase_10 AC 738 ms
64,020 KB
testcase_11 AC 760 ms
63,140 KB
testcase_12 AC 744 ms
63,284 KB
testcase_13 AC 841 ms
64,644 KB
testcase_14 AC 847 ms
65,004 KB
testcase_15 AC 863 ms
65,096 KB
testcase_16 AC 706 ms
63,340 KB
testcase_17 AC 829 ms
65,040 KB
testcase_18 AC 849 ms
65,156 KB
testcase_19 AC 857 ms
65,012 KB
testcase_20 AC 845 ms
64,788 KB
testcase_21 AC 778 ms
63,668 KB
testcase_22 AC 850 ms
64,860 KB
testcase_23 AC 703 ms
63,384 KB
testcase_24 AC 835 ms
65,148 KB
testcase_25 AC 848 ms
64,460 KB
testcase_26 AC 905 ms
65,040 KB
testcase_27 AC 760 ms
64,068 KB
testcase_28 AC 846 ms
64,868 KB
testcase_29 AC 838 ms
64,444 KB
testcase_30 AC 854 ms
64,620 KB
testcase_31 AC 728 ms
65,212 KB
testcase_32 AC 767 ms
63,364 KB
testcase_33 AC 876 ms
64,892 KB
testcase_34 AC 724 ms
63,344 KB
testcase_35 AC 722 ms
63,952 KB
testcase_36 AC 853 ms
64,788 KB
testcase_37 AC 879 ms
66,096 KB
testcase_38 AC 843 ms
65,520 KB
testcase_39 AC 841 ms
64,992 KB
testcase_40 AC 871 ms
64,348 KB
testcase_41 AC 794 ms
64,232 KB
testcase_42 AC 786 ms
64,708 KB
testcase_43 AC 696 ms
63,748 KB
testcase_44 AC 782 ms
64,124 KB
testcase_45 AC 835 ms
64,980 KB
testcase_46 AC 852 ms
64,956 KB
testcase_47 AC 889 ms
64,740 KB
testcase_48 AC 867 ms
62,880 KB
testcase_49 AC 702 ms
63,196 KB
testcase_50 AC 775 ms
63,636 KB
testcase_51 AC 176 ms
57,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.PrintWriter;
import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner scanner=new Scanner(System.in);
		PrintWriter out=new PrintWriter(System.out);
		int n=scanner.nextInt();
		for(int i=0; i<n; i++) {
			double a=scanner.nextDouble();
			double b=scanner.nextDouble();
			double c=b*Math.log10(a);
			long z=(long)c;
			int xy=(int)(Math.pow(10, c-(double)z)*10);
			int x=xy/10;
			int y=xy%10;
			out.println(x+" "+y+" "+z);
		}
		out.close();
		scanner.close();
	}
}
0