結果
| 問題 |
No.219 巨大数の概算
|
| コンテスト | |
| ユーザー |
beet
|
| 提出日時 | 2019-03-23 16:29:30 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 1,500 ms |
| コード長 | 610 bytes |
| コンパイル時間 | 1,764 ms |
| コンパイル使用メモリ | 195,364 KB |
| 最終ジャッジ日時 | 2025-01-07 00:22:47 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 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