結果
問題 | No.668 6.0*10^23 |
ユーザー |
![]() |
提出日時 | 2018-03-23 22:32:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 707 bytes |
コンパイル時間 | 1,622 ms |
コンパイル使用メモリ | 168,972 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 05:06:42 |
合計ジャッジ時間 | 2,797 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
#include<bits/stdc++.h>using namespace std;#define vi vector<int>#define vvi vector<vi>#define vs vector<string>#define pb push_back#define P pair<int,int>#define vp vector<P>#define PP pair<int,P>#define vpp vector<PP>#define fi first#define se second#define INF 1e9#define MOD 1000000007#define REP(i,n) for(int i=0;i<n;i++)#define REPR(i,n) for(int i=n;i>=0;i--)#define FOR(i,m,n) for(int i=m;i<n;i++)#define all(x) (x).begin(),(x).end()int main(){string st;cin>>st;int a=stoi(st.substr(0,3));if(a%10>=5){((a/=10)+=1)*=10;}if(a>=1000){st+='0';a/=10;}cout<<a/100<<"."<<a/10%10<<"*10^"<<st.size()-1<<endl;return 0;}