結果
| 問題 |
No.668 6.0*10^23
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-20 01:49:08 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 24 ms / 2,000 ms |
| コード長 | 296 bytes |
| コンパイル時間 | 2,144 ms |
| コンパイル使用メモリ | 194,720 KB |
| 最終ジャッジ日時 | 2025-01-07 14:19:28 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 50 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string s;
cin>>s;
int e=s.size()-1;
s=s.substr(0,3);
int n=stoi(s);
n+=5;
if (n>=1000) {
e++;
n/=10;
}
cout<<n/100<<'.'<<n/10%10<<"*10^"<<e<<endl;
return 0;
}