結果
| 問題 | No.219 巨大数の概算 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-25 23:38:42 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 356 bytes |
| 記録 | |
| コンパイル時間 | 1,581 ms |
| コンパイル使用メモリ | 166,268 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 11:23:08 |
| 合計ジャッジ時間 | 9,651 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 51 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
signed main(){
int N; cin >> N;
for( int i = 0; i < N; ++i ){
int A, B; cin >> A >> B;
double v = log10( A ) * B;
double h = pow( 10, v - floor( v ) );
int p = floor( v );
cout << ( int ) floor( h ) << " " << ( int ) ( 10.0 * ( h - floor( h ) ) ) << " " << p << endl;
}
return 0;
}