結果
問題 |
No.219 巨大数の概算
|
ユーザー |
![]() |
提出日時 | 2015-05-29 23:31:28 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 592 bytes |
コンパイル時間 | 1,182 ms |
コンパイル使用メモリ | 159,968 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-06 12:08:14 |
合計ジャッジ時間 | 9,136 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 51 |
ソースコード
#include <bits/stdc++.h> inline long nextInt(void) { long temp; std::cin >> temp; return temp; } int main() { long N; long A, B; double temp; long X, Y, Z; std::cin >> N; for(int i = 0; i < N; ++i) { std::cin >> A >> B; temp = B * log10(A); Z = (int)temp; temp -= (int)temp; //std::cout << "temp" << temp << std::endl;; for(int i = 10; i < 100; ++i) { //std::cout << -log10(i/100.0) << std::endl; if( temp > -log10(i/100.0) ) { std::cout << i/10 << " " << i%10 << " " << Z << std::endl; break; } } } return 0; }