結果
問題 | No.668 6.0*10^23 |
ユーザー |
![]() |
提出日時 | 2018-03-23 22:43:12 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 682 bytes |
コンパイル時間 | 865 ms |
コンパイル使用メモリ | 93,800 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 05:11:37 |
合計ジャッジ時間 | 1,992 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
#include <algorithm>#include <cmath>#include <deque>#include <iostream>#include <map>#include <numeric>#include <queue>#include <set>#include <string>#include <unordered_map>#include <vector>using namespace std;using ll = long long;int main() {cin.tie(0);ios::sync_with_stdio(false);string N;cin >> N;int n = atoi(N.substr(0, 3).c_str());n = (int)((round(n / 10.0)) * 10);int a = n / 100;int b = n % 100;if (b % 10 == 0)b /= 10;int digit = N.size() - 1;if (a >= 10) {a = 1;b = 0;digit++;}cout << a << "." << b << "*" << 10 << "^" << digit << endl;return 0;}