結果
| 問題 |
No.219 巨大数の概算
|
| コンテスト | |
| ユーザー |
tonegawa
|
| 提出日時 | 2020-08-17 11:52:31 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 1,500 ms |
| コード長 | 288 bytes |
| コンパイル時間 | 2,820 ms |
| コンパイル使用メモリ | 192,932 KB |
| 最終ジャッジ日時 | 2025-01-13 02:27:03 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 51 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int n;cin>>n;
while (n--) {
ll a,b;
cin>>a>>b;
double c=b*log10(a);
int d=pow(10,c-floor(c)+1);
cout<<d/10<<' '<<d%10<<' '<<(ll)c<<endl;
}
return 0;
}
tonegawa