結果

問題 No.219 巨大数の概算
ユーザー koyumeishi
提出日時 2015-05-29 23:17:54
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 27 ms / 1,500 ms
コード長 450 bytes
コンパイル時間 581 ms
コンパイル使用メモリ 73,420 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-18 10:45:41
合計ジャッジ時間 3,829 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <cstdio>
#include <sstream>
#include <map>
#include <string>
#include <algorithm>
#include <queue>
#include <cmath>
#include <set>
using namespace std;


int main(){
	int n;
	cin >> n;
	while(n--){
		long long a,b;
		cin >> a >> b;

		double d = b*log10(a);
		long long z = d;

		double tmp = d - z;

		long long x = pow(10, tmp) * 10;

		cout << x/10 << " " << x%10 << " " << z << endl;
	}
	return 0;
}
0