結果
問題 | No.668 6.0*10^23 |
ユーザー |
![]() |
提出日時 | 2018-04-12 18:33:01 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 960 bytes |
コンパイル時間 | 1,520 ms |
コンパイル使用メモリ | 169,628 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 05:50:24 |
合計ジャッジ時間 | 3,078 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef unsigned int uint;typedef long long int llint;typedef unsigned long long int ullint;//#define DEBUG#ifdef DEBUG#define dump(i) cout << "[*] " #i " : " << i << endl;#define debug(i) i#else#define dump(i)#define debug(i)#endif#define rep(i, max) for (int i = 0; i < (max); ++i)inline void solve() {string s;cin >> s;stringstream ss(s.substr(0, 3));int n;ss >> n;if (n >= 995) {cout << "1.0*10^" << s.size() << endl;} else {n += 5;cout << n / 100 << "." << (n / 10) % 10 << "*10^" << s.size() - 1 << endl;}}int main() {/*ios::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr);//*/#ifdef DEBUGclock_t _begin = clock();#endifsolve();#ifdef DEBUGcerr << "[*] time : " << (double)(clock() - _begin) * 1000 / CLOCKS_PER_SEC << " [ms]" << endl;#endifreturn 0;}