結果
問題 |
No.668 6.0*10^23
|
ユーザー |
![]() |
提出日時 | 2018-04-12 18:18:29 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 896 bytes |
コンパイル時間 | 1,214 ms |
コンパイル使用メモリ | 159,848 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 05:50:27 |
合計ジャッジ時間 | 2,435 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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, i = s.size() - 1; ss >> n; if (n >= 995) { i+=1; n /= 10; } printf("%.1f*10^%d\n", n / 100.0, i); } 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; }