結果
問題 | No.668 6.0*10^23 |
ユーザー |
![]() |
提出日時 | 2018-06-22 21:07:04 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 1,235 ms |
コンパイル使用メモリ | 159,036 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 18:06:10 |
合計ジャッジ時間 | 2,491 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false), cin.tie(0); string s; cin >> s; int x = s[0]-'0'; int y = s[1]-'0'; int z = s[2]-'0'; if(z > 4) y++; int k = s.size()-1; if(y == 10) y = 0, x++; if(x == 10) x = 1, k++; cout << x << "." << y << "*10^" << k << endl; }