結果

問題 No.219 巨大数の概算
ユーザー odan3240
提出日時 2016-06-09 20:31:35
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 380 bytes
コンパイル時間 565 ms
コンパイル使用メモリ 60,916 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-09 06:21:49
合計ジャッジ時間 8,850 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdlib>
#include <vector>
#include <cmath>

using namespace std;
using ll = long long;

int main() {
    int N;
    ll a, b;
    cin >> N;
    while (N--) {
        cin >> a >> b;
        double t = b * log10(a);
        int radix = (int)t;
        int ans = 10 * pow(10, t - radix);
        printf("%d %d %d\n", ans / 10, ans % 10, radix);
    }
}
0