結果
問題 | No.219 巨大数の概算 |
ユーザー | eri |
提出日時 | 2015-07-23 23:17:12 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 28 ms / 1,500 ms |
コード長 | 320 bytes |
コンパイル時間 | 382 ms |
コンパイル使用メモリ | 60,880 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-18 11:19:25 |
合計ジャッジ時間 | 3,540 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 51 |
ソースコード
#include<iostream> #include<cmath> using namespace std; int main(){ int n; cin >> n; for (int i = 0; i < n; i++) { int a, b; cin >> a >> b; long double l = log10(a)*b; long long z = l; int t = pow(10, l - z + 1); int x = t / 10; int y = t % 10; cout << x << " " << y << " " << z << endl; } return 0; }