結果
問題 | No.219 巨大数の概算 |
ユーザー |
|
提出日時 | 2015-05-29 21:41:23 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 376 bytes |
コンパイル時間 | 1,711 ms |
コンパイル使用メモリ | 158,176 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-06 11:05:25 |
合計ジャッジ時間 | 10,774 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | WA * 51 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){int N;cin >> N;for(int i=0;i<N;i++){int A, B;cin >> A >> B;double l = log(A) * B / log(10);int Z = (int)l;int t = pow(10, l - Z + 1);int X = t / 10;int Y = t % 10;cout << X << " " << Y << " " << Z << endl;}return 0;}