結果
| 問題 | No.219 巨大数の概算 |
| コンテスト | |
| ユーザー |
kongarishisyamo
|
| 提出日時 | 2016-06-22 21:25:36 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 18 ms / 1,500 ms |
| + 470µs | |
| コード長 | 292 bytes |
| 記録 | |
| コンパイル時間 | 355 ms |
| コンパイル使用メモリ | 77,728 KB |
| 実行使用メモリ | 9,416 KB |
| 最終ジャッジ日時 | 2026-08-17 02:46:40 |
| 合計ジャッジ時間 | 3,827 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 51 |
ソースコード
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int N;
double A,B;
cin>>N;
while(N--){
cin>>A>>B;
double a=log10((double)A)*B;
long long b=a;
long long c=pow(10.0,(a-b))*100000000;
while(c/100!=0) c/=10;
cout<<c/10<<" "<<c%10<<" "<<b<<endl;
}
}
kongarishisyamo