結果
問題 | No.668 6.0*10^23 |
ユーザー |
|
提出日時 | 2018-11-09 15:11:08 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 327 bytes |
コンパイル時間 | 1,599 ms |
コンパイル使用メモリ | 167,456 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 05:03:16 |
合計ジャッジ時間 | 3,082 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
#include<bits/stdc++.h>using namespace std;int main(){string s;cin>>s;if(s[0]=='9'&&s[1]=='9'&&s[2]>='5'){cout<<"1.0*10^"<<s.length()<<endl;return 0;}double a=stoi(s.substr(0,3));a/=10;a=round(a);printf("%.1f*10^%d",a/10,s.length()-1);cout<<endl;return 0;}