結果
問題 | No.668 6.0*10^23 |
ユーザー |
![]() |
提出日時 | 2023-06-12 13:41:08 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 539 bytes |
コンパイル時間 | 3,989 ms |
コンパイル使用メモリ | 250,748 KB |
最終ジャッジ日時 | 2025-02-14 02:04:02 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
#include <bits/stdc++.h>#include<atcoder/all>using namespace atcoder;using namespace std;using ll=long long;using ld=long double;ld pie=3.141592653589793;ll inf=20000;ll mod=998244353;int main(){string s;cin >> s;ll x=0;x=s[0]-'0';x*=10;x+=s[1]-'0';if (s[2]>'4'){x+=1;}ll sz=s.size();sz--;if (x==100){cout << "1.0*10^" << sz+1 << endl;return 0;}ll a=x/10;ll b=x%10;cout << a << '.' << b << "*10^" << sz << endl;}