結果
問題 | No.219 巨大数の概算 |
ユーザー |
![]() |
提出日時 | 2015-08-04 00:36:21 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 296 bytes |
コンパイル時間 | 1,459 ms |
コンパイル使用メモリ | 159,476 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-18 01:10:21 |
合計ジャッジ時間 | 10,604 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | WA * 51 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for (int i = 0; i < n; ++i) { double a, b; cin >> a >> b; double res = log10(a) * b; int xy = pow(10, fmod(res, 1)) * 10; cout << xy / 10 << " " << xy % 10 << " " << floor(res) << endl; } }