結果
| 問題 |
No.219 巨大数の概算
|
| コンテスト | |
| ユーザー |
ngtkana
|
| 提出日時 | 2020-04-06 00:53:26 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 1,500 ms |
| コード長 | 576 bytes |
| コンパイル時間 | 3,294 ms |
| コンパイル使用メモリ | 192,668 KB |
| 最終ジャッジ日時 | 2025-01-09 14:29:43 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 51 |
ソースコード
#include<bits/stdc++.h>
#define ALL(v) std::begin(v),std::end(v)
using lint=long long;
using lubl=long double;
#define ENABLE_DEBUG 1
#ifdef NGTKANA
#include<debug.hpp>
#else
#define DEBUG(...)(void)0
#endif
int main(){
std::cin.tie(nullptr);std::ios_base::sync_with_stdio(false);
std::cout.setf(std::ios_base::fixed);std::cout.precision(15);
lint q;std::cin>>q;
while(q--){
lubl a,b;std::cin>>a>>b;
lubl lg=b*std::log10(a);
lint p=lg;
lint x=(lint)std::pow(10,lg-p+1);
std::cout<<x/10<<' '<<x%10<<' '<<p<<'\n';
}
}
ngtkana