結果
| 問題 | No.219 巨大数の概算 |
| コンテスト | |
| ユーザー |
beet
|
| 提出日時 | 2019-03-23 16:28:27 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 610 bytes |
| 記録 | |
| コンパイル時間 | 2,322 ms |
| コンパイル使用メモリ | 194,484 KB |
| 最終ジャッジ日時 | 2025-01-07 00:22:34 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 51 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using Int = long long;
template<typename T1,typename T2> inline void chmin(T1 &a,T2 b){if(a>b) a=b;}
template<typename T1,typename T2> inline void chmax(T1 &a,T2 b){if(a<b) a=b;}
struct Precision{
Precision(){
cout<<fixed<<setprecision(12);
}
}precision_beet;
//INSERT ABOVE HERE
signed main(){
int n;
cin>>n;
using D = long double;
while(n--){
D a,b;
cin>>a>>b;
D l=log10(a)*b;
int z=floor(l);
D r=l-z;
D p=pow(10.0,r);
int x=floor(p);
int y=floor(p*10)-x*10;
cout<<x<<" "<<y<<" "<<z<<endl;
}
return 0;
}
beet