結果

問題 No.668 6.0*10^23
ユーザー ama_nuko
提出日時 2018-06-09 16:30:35
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 538 bytes
コンパイル時間 577 ms
コンパイル使用メモリ 82,184 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-30 12:36:42
合計ジャッジ時間 2,136 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 45
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cmath>
#include <iostream>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <algorithm>
#include <utility>
#include <iomanip>

#define int long long int
#define rep(i, n) for(int i = 0; i < (n); ++i)

using namespace std;

typedef pair<int, int> P;

const int INF = 1e15;
const int MOD = 1e9+7;

signed main(){
    double n;
    cin >> n;

    int ans = 0;
    while(n >= 10.0){
        n /= 10;
        ans++;
    }

    cout << fixed << setprecision(1) << n << "*10^" << ans << endl;

    return 0;
}
0