結果
問題 |
No.668 6.0*10^23
|
ユーザー |
![]() |
提出日時 | 2018-04-12 18:26:43 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 924 bytes |
コンパイル時間 | 1,416 ms |
コンパイル使用メモリ | 168,912 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-30 05:50:34 |
合計ジャッジ時間 | 2,618 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 44 WA * 6 |
ソースコード
#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 { printf("%.1lf*10^%lu\n", n / 100.0, s.size() - 1); } } int main() { /* ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); //*/ #ifdef DEBUG clock_t _begin = clock(); #endif solve(); #ifdef DEBUG cerr << "[*] time : " << (double)(clock() - _begin) * 1000 / CLOCKS_PER_SEC << " [ms]" << endl; #endif return 0; }