結果

問題 No.219 巨大数の概算
ユーザー fiord
提出日時 2015-08-02 00:47:17
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 251 bytes
コンパイル時間 1,547 ms
コンパイル使用メモリ 160,440 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-18 00:44:25
合計ジャッジ時間 12,546 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
	int n;	cin>>n;
	while(n--){
		int a,b;	cin>>a>>b;
		long double tem=b*(double)(log10(a));
		int num=pow(10,(tem-(int)tem)+1);
		cout<<num/10<<" "<<num%10<<" "<<(int)tem<<endl;
	}
	return 0;
}
0