結果

問題 No.219 巨大数の概算
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-25 17:23:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 556 ms / 1,500 ms
コード長 534 bytes
コンパイル時間 3,928 ms
コンパイル使用メモリ 76,884 KB
実行使用メモリ 62,532 KB
最終ジャッジ日時 2023-09-25 15:33:47
合計ジャッジ時間 33,276 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 510 ms
60,772 KB
testcase_01 AC 533 ms
61,336 KB
testcase_02 AC 530 ms
60,884 KB
testcase_03 AC 523 ms
61,184 KB
testcase_04 AC 503 ms
60,800 KB
testcase_05 AC 174 ms
56,936 KB
testcase_06 AC 323 ms
59,812 KB
testcase_07 AC 167 ms
56,916 KB
testcase_08 AC 319 ms
60,028 KB
testcase_09 AC 170 ms
56,720 KB
testcase_10 AC 541 ms
61,064 KB
testcase_11 AC 499 ms
61,468 KB
testcase_12 AC 519 ms
61,024 KB
testcase_13 AC 518 ms
62,532 KB
testcase_14 AC 530 ms
61,948 KB
testcase_15 AC 525 ms
60,992 KB
testcase_16 AC 515 ms
61,108 KB
testcase_17 AC 515 ms
60,704 KB
testcase_18 AC 511 ms
61,504 KB
testcase_19 AC 488 ms
61,336 KB
testcase_20 AC 492 ms
60,908 KB
testcase_21 AC 542 ms
61,944 KB
testcase_22 AC 525 ms
61,504 KB
testcase_23 AC 512 ms
61,092 KB
testcase_24 AC 515 ms
60,688 KB
testcase_25 AC 534 ms
61,472 KB
testcase_26 AC 513 ms
60,988 KB
testcase_27 AC 503 ms
60,848 KB
testcase_28 AC 526 ms
60,700 KB
testcase_29 AC 484 ms
61,232 KB
testcase_30 AC 514 ms
61,136 KB
testcase_31 AC 521 ms
61,376 KB
testcase_32 AC 523 ms
61,704 KB
testcase_33 AC 516 ms
61,380 KB
testcase_34 AC 527 ms
60,968 KB
testcase_35 AC 534 ms
60,848 KB
testcase_36 AC 510 ms
61,084 KB
testcase_37 AC 522 ms
60,892 KB
testcase_38 AC 543 ms
61,132 KB
testcase_39 AC 524 ms
61,188 KB
testcase_40 AC 551 ms
61,404 KB
testcase_41 AC 517 ms
60,988 KB
testcase_42 AC 529 ms
61,288 KB
testcase_43 AC 523 ms
60,672 KB
testcase_44 AC 536 ms
60,896 KB
testcase_45 AC 525 ms
61,096 KB
testcase_46 AC 523 ms
61,780 KB
testcase_47 AC 556 ms
61,564 KB
testcase_48 AC 554 ms
61,040 KB
testcase_49 AC 502 ms
60,720 KB
testcase_50 AC 522 ms
60,948 KB
testcase_51 AC 168 ms
56,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        for(int i=0; i<N; i++){
            long A = sc.nextLong();
            long B = sc.nextLong();
            double c = Math.log10(A)*B;
            long d = (long)c;
            double e = c-(double)d;
            int f = (int)(Math.pow(10,e)*10);
            int g = f/10;
            int h = f%10;
            System.out.println(g+" "+h+" "+d);
        }
    }
}
0