結果

問題 No.219 巨大数の概算
ユーザー maine_honzukimaine_honzuki
提出日時 2020-12-25 00:18:50
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 332 bytes
コンパイル時間 1,879 ms
コンパイル使用メモリ 192,896 KB
最終ジャッジ日時 2025-01-17 06:47:01
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    int N;
    cin >> N;
    while (N--) {
        int A, B;
        cin >> A >> B;
        long double logAB = B * log10((long double)A);
        int ans = pow(10, logAB - (int)logAB + 1);
        cout << ans / 10 << " " << ans % 10 << " " << (int)logAB << endl;
    }
}
0