結果

問題 No.219 巨大数の概算
ユーザー 37zigen37zigen
提出日時 2016-05-03 00:32:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 1,021 ms / 1,500 ms
コード長 527 bytes
コンパイル時間 4,318 ms
コンパイル使用メモリ 73,440 KB
実行使用メモリ 67,012 KB
最終ジャッジ日時 2023-09-25 15:25:59
合計ジャッジ時間 53,036 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 999 ms
65,100 KB
testcase_01 AC 883 ms
63,784 KB
testcase_02 AC 965 ms
64,600 KB
testcase_03 AC 965 ms
65,060 KB
testcase_04 AC 914 ms
64,984 KB
testcase_05 AC 183 ms
57,204 KB
testcase_06 AC 433 ms
65,248 KB
testcase_07 AC 194 ms
57,216 KB
testcase_08 AC 442 ms
62,948 KB
testcase_09 AC 181 ms
56,992 KB
testcase_10 AC 904 ms
63,584 KB
testcase_11 AC 992 ms
65,544 KB
testcase_12 AC 975 ms
65,208 KB
testcase_13 AC 885 ms
63,772 KB
testcase_14 AC 999 ms
65,172 KB
testcase_15 AC 941 ms
64,880 KB
testcase_16 AC 837 ms
65,116 KB
testcase_17 AC 989 ms
65,120 KB
testcase_18 AC 1,021 ms
65,064 KB
testcase_19 AC 951 ms
64,872 KB
testcase_20 AC 955 ms
64,944 KB
testcase_21 AC 830 ms
64,544 KB
testcase_22 AC 976 ms
65,596 KB
testcase_23 AC 952 ms
67,012 KB
testcase_24 AC 883 ms
63,872 KB
testcase_25 AC 897 ms
65,164 KB
testcase_26 AC 978 ms
64,836 KB
testcase_27 AC 947 ms
65,204 KB
testcase_28 AC 957 ms
64,760 KB
testcase_29 AC 965 ms
65,252 KB
testcase_30 AC 982 ms
64,952 KB
testcase_31 AC 955 ms
65,040 KB
testcase_32 AC 844 ms
64,280 KB
testcase_33 AC 954 ms
64,672 KB
testcase_34 AC 961 ms
64,964 KB
testcase_35 AC 971 ms
65,232 KB
testcase_36 AC 863 ms
63,972 KB
testcase_37 AC 934 ms
65,268 KB
testcase_38 AC 903 ms
64,996 KB
testcase_39 AC 923 ms
65,152 KB
testcase_40 AC 975 ms
65,260 KB
testcase_41 AC 989 ms
65,472 KB
testcase_42 AC 1,000 ms
65,532 KB
testcase_43 AC 966 ms
65,096 KB
testcase_44 AC 967 ms
65,048 KB
testcase_45 AC 983 ms
64,852 KB
testcase_46 AC 919 ms
63,900 KB
testcase_47 AC 915 ms
63,908 KB
testcase_48 AC 915 ms
65,368 KB
testcase_49 AC 938 ms
64,748 KB
testcase_50 AC 965 ms
65,316 KB
testcase_51 AC 179 ms
57,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;
import java.util.Scanner;
public class Main{
	public static void main(String[] args)throws Exception{
		new Main().solve();
	}
	void solve(){
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		for(int i=0;i<n;i++){
			double a=sc.nextDouble();
			double b=sc.nextDouble();
			
			//10の指数
			long z=(long)(b*Math.log10(a));
			
			double d=(b*Math.log10(a)%1);
			d=(Math.pow(10, d)*10);
			String ans=String.valueOf(d);
			System.out.println(ans.charAt(0)+" "+ans.charAt(1)+" "+z);

		}
	}
}
0