結果
問題 | No.219 巨大数の概算 |
ユーザー |
![]() |
提出日時 | 2017-11-14 12:40:37 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 614 bytes |
コンパイル時間 | 1,097 ms |
コンパイル使用メモリ | 158,456 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-25 02:02:10 |
合計ジャッジ時間 | 10,243 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | WA * 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, Z; Z = B*log10(A); int x = pow(10,(B*log10(A)-Z))*10; X = x / 10; Y = x % 10; cout << X << " " << Y << " " << Z << endl; N--; } return 0; }