結果
問題 |
No.668 6.0*10^23
|
ユーザー |
|
提出日時 | 2018-05-25 06:38:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 443 bytes |
コンパイル時間 | 677 ms |
コンパイル使用メモリ | 73,996 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 07:14:41 |
合計ジャッジ時間 | 1,759 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 50 |
ソースコード
#include <iostream> #include <algorithm> #include <vector> #include <cmath> using namespace std; int main(){ string N; cin >> N; int N_decimal_round = (stoi(N.substr(0, 3)) * 2 / 10 + 1) / 2; cout << N_decimal_round << endl; 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; } }