結果
問題 | No.668 6.0*10^23 |
ユーザー |
![]() |
提出日時 | 2018-04-21 02:45:22 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 586 bytes |
コンパイル時間 | 665 ms |
コンパイル使用メモリ | 85,224 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 06:09:39 |
合計ジャッジ時間 | 1,875 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
#include <iostream>#include <vector>#include <string>#include <cstring>#include <math.h>#include <cmath>#include <limits.h>#include <map>#include <set>#include <queue>#include <algorithm>#include <functional>#include <stdio.h>using namespace std;long long MOD = 1000000007;int main() {string S;cin >> S;int a = stoi(S.substr(0,3));if ( a%10 >= 5 ) { a = a/10 + 1; }else { a /= 10; }string s = to_string(a);int order = S.length()-1 + ( a == 100 ? 1 : 0 );cout << s[0] << "." << s[1] << "*10^" << order << endl;return 0;}