結果
問題 | No.668 6.0*10^23 |
ユーザー |
|
提出日時 | 2018-03-23 22:37:10 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 463 bytes |
コンパイル時間 | 673 ms |
コンパイル使用メモリ | 74,812 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 05:10:43 |
合計ジャッジ時間 | 1,918 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 49 WA * 1 |
ソースコード
#include <iostream> #include <algorithm> #include <vector> #include <cmath> using namespace std; int main(){ string N; cin >> N; string N_decimal = N.substr(0, 2) + "." + N.substr(2, N.size() - 2); int N_decimal_round = round(stod(N_decimal)); if(N_decimal_round == 100){ cout << "1.0*10^" << N.size() << endl; }else{ cout << N_decimal_round / 10 << "." << N_decimal_round % 10 << "*10^" << N.size() - 1 << endl; } }