結果
| 問題 | No.219 巨大数の概算 |
| コンテスト | |
| ユーザー |
kongarishisyamo
|
| 提出日時 | 2016-06-22 21:23:56 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 280 bytes |
| 記録 | |
| コンパイル時間 | 749 ms |
| コンパイル使用メモリ | 59,388 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-11 19:24:22 |
| 合計ジャッジ時間 | 10,940 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 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;
int b=a;
int c=pow(10.0,(a-b))*100000000;
while(c/100!=0) c/=10;
cout<<c/10<<" "<<c%10<<" "<<b<<endl;
}
}
kongarishisyamo