結果
| 問題 |
No.219 巨大数の概算
|
| コンテスト | |
| ユーザー |
odan3240
|
| 提出日時 | 2016-06-09 20:33:28 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 384 bytes |
| コンパイル時間 | 593 ms |
| コンパイル使用メモリ | 60,928 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-09 06:22:03 |
| 合計ジャッジ時間 | 8,850 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 51 |
ソースコード
#include <iostream>
#include <cstdlib>
#include <vector>
#include <cmath>
using namespace std;
using ll = long long;
int main() {
int N;
ll a, b;
cin >> N;
while (N--) {
cin >> a >> b;
double t = b * log10(a);
ll radix = (int)t;
ll ans = 10 * pow(10, t - radix);
printf("%lld %lld %lld\n", ans / 10, ans % 10, radix);
}
}
odan3240