結果

問題 No.219 巨大数の概算
コンテスト
ユーザー HeyHey0111
提出日時 2016-03-07 23:54:05
言語 C++11
(gcc 15.3.0 + boost 1.92.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 387 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 337 ms
コンパイル使用メモリ 88,508 KB
実行使用メモリ 9,808 KB
最終ジャッジ日時 2026-09-03 06:26:00
合計ジャッジ時間 7,921 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 51
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include<iostream>
#include<string>
#include<vector>
#include<set>
#include<math.h>
using namespace std;


int main(){
  int n;
  cin >> n;
  for(int i=0;i<n;i++){
      double a,b;
      cin >>a >> b;
      double k =b*log10(a);
      cout<< (int)pow(10,k-(int)k) <<" "
          << (int)((pow(10,k-(int)k) - (int)pow(10,k-(int)k))*10)<<" "
          << (int)k <<endl;
  }
  return 0;
}
0