結果

問題 No.219 巨大数の概算
ユーザー machy
提出日時 2015-06-14 02:58:06
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 465 bytes
コンパイル時間 814 ms
コンパイル使用メモリ 74,368 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-06 19:59:00
合計ジャッジ時間 11,433 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <iomanip>
#include <map>
using namespace std;
typedef long long LL;

int main(){
    LL N;
    cin >> N;
    for(int i = 0; i < N; i++){
        LL A, B;
        cin >> A >> B;
        double r = log10(A) * B;
        int e = (int)(r);
        double v = pow(10, r-e);
        cout << (int)(v) << " " << (int)(v*10)%10 << " " << e << endl;
    }
    return 0;
}
0