結果
問題 | No.219 巨大数の概算 |
ユーザー |
|
提出日時 | 2022-08-24 11:27:11 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 559 bytes |
コンパイル時間 | 1,514 ms |
コンパイル使用メモリ | 166,144 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 21:08:39 |
合計ジャッジ時間 | 11,563 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 - floor(ans));s = floor(s * 10);cout << int(s) / 10 << " " << int(s) % 10 << " " << floor(ans) << '\n';}}