結果

問題 No.219 巨大数の概算
ユーザー femto
提出日時 2015-12-20 20:46:04
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 297 bytes
コンパイル時間 439 ms
コンパイル使用メモリ 58,332 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-17 12:20:28
合計ジャッジ時間 8,768 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 51
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>
using namespace std;

int main() {
	int n;
	cin >> n;
	for(int loop = 0; loop < n; loop++) {
		int a, b;
		cin >> a >> b;
		double c = b * log10(a);
		double d = pow(10, c - (int)c);
		cout << (int)d << " " << (int)(d * 10) % 10 << " " << (int)c << endl;
	}
}
0