結果
| 問題 | No.219 巨大数の概算 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-24 11:24:49 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 538 bytes |
| 記録 | |
| コンパイル時間 | 1,487 ms |
| コンパイル使用メモリ | 166,632 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-11 21:06:25 |
| 合計ジャッジ時間 | 11,338 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 51 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define vector4d(type,name,h,w,d,...) vector<vector<vector<vector<type>>>>name(h,vector<vector<vector<type>>>(w,vector<vector<type>>(d,vector<type>(__VA_ARGS__))))
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int T, A, B;
cin >> T;
while(T--){
cin >> A >> B;
double ans = B * log10(A);
double s = pow(10, ans - int(ans));
cout << int(s * 10) / 10 << " " << int(s * 10) % 10 << " " << int(ans) << '\n';
}
}