結果
問題 | No.219 巨大数の概算 |
ユーザー |
|
提出日時 | 2022-08-24 11:29:09 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 400 bytes |
コンパイル時間 | 1,742 ms |
コンパイル使用メモリ | 166,188 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 21:10:13 |
合計ジャッジ時間 | 10,547 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | WA * 51 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; 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 << " " << int(floor(ans)) << '\n'; } }