結果
問題 | No.668 6.0*10^23 |
ユーザー |
|
提出日時 | 2018-03-23 22:27:37 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 346 bytes |
コンパイル時間 | 1,392 ms |
コンパイル使用メモリ | 157,548 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 05:03:22 |
合計ジャッジ時間 | 2,460 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
#include <bits/stdc++.h>#define MOD 1000000007LLusing namespace std;typedef long long ll;typedef pair<int,int> P;int main(void){string str;cin >> str;int n=str.size();int v=(str[0]-'0')*10+(str[1]-'0');if((str[2]-'0')>=5)v++;if(v==100){printf("1.0*10^%d\n",n);}else{printf("%d.%d*10^%d\n",v/10,v%10,n-1);}return 0;}