結果
| 問題 |
No.219 巨大数の概算
|
| コンテスト | |
| ユーザー |
HeyHey0111
|
| 提出日時 | 2016-03-07 23:54:05 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 387 bytes |
| コンパイル時間 | 585 ms |
| コンパイル使用メモリ | 65,320 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-24 13:00:29 |
| 合計ジャッジ時間 | 9,685 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 51 |
ソースコード
#include<iostream>
#include<string>
#include<vector>
#include<set>
#include<math.h>
using namespace std;
int main(){
int n;
cin >> n;
for(int i=0;i<n;i++){
double a,b;
cin >>a >> b;
double k =b*log10(a);
cout<< (int)pow(10,k-(int)k) <<" "
<< (int)((pow(10,k-(int)k) - (int)pow(10,k-(int)k))*10)<<" "
<< (int)k <<endl;
}
return 0;
}
HeyHey0111