結果
| 問題 |
No.219 巨大数の概算
|
| コンテスト | |
| ユーザー |
41Toame
|
| 提出日時 | 2017-11-14 12:43:33 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 20 ms / 1,500 ms |
| コード長 | 618 bytes |
| コンパイル時間 | 1,125 ms |
| コンパイル使用メモリ | 159,500 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-18 12:24:35 |
| 合計ジャッジ時間 | 4,120 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 51 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define rep(i,n) for( int i = 0; i < n; i++ )
#define dump(x) cerr << #x << " = " << (x) << endl;
#define INF 2000000000
#define mod 1000000007
#define INF2 1000000000000000000
int main(void)
{
cin.tie(0);
ios::sync_with_stdio(false);
int N;
cin >> N;
int A, B;
while (N > 0) {
cin >> A >> B;
int X, Y;
ll Z = B*log10(A);
int x = pow((ll)10,(B*log10(A)-Z))*10;
X = x / 10;
Y = x % 10;
cout << X << " " << Y << " " << Z << endl;
N--;
}
return 0;
}
41Toame