結果

問題 No.219 巨大数の概算
ユーザー HeyHey0111HeyHey0111
提出日時 2016-03-08 00:01:52
言語 C++11
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 485 bytes
コンパイル時間 559 ms
コンパイル使用メモリ 64,204 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-24 13:16:55
合計ジャッジ時間 9,554 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

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


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