結果
問題 | No.219 巨大数の概算 |
ユーザー |
|
提出日時 | 2018-06-25 22:17:01 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 312 bytes |
コンパイル時間 | 530 ms |
コンパイル使用メモリ | 68,636 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 22:42:50 |
合計ジャッジ時間 | 10,318 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | WA * 51 |
ソースコード
#include <iostream> #include <math.h> using namespace std; int main(int argc, char* argv[]) { int N,A,B; cin>>N; for (int i=0;i<N;i++){ cin>>A>>B; double x=B*log10((double)A); int Z=(int)x; double y=pow(10,x-Z); int X=(int)y; int Y=(int)((y-X)*10); cout<<X<<" "<<Y<<" "<<Z<<endl; } return 0; }