結果
問題 | No.668 6.0*10^23 |
ユーザー |
|
提出日時 | 2019-01-31 06:27:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 334 bytes |
コンパイル時間 | 1,543 ms |
コンパイル使用メモリ | 167,552 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-01 11:13:54 |
合計ジャッジ時間 | 3,095 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
#define _USE_MATH_DEFINES #include <bits/stdc++.h> using namespace std; signed main() { ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; int n = (int) s.length() - 1; double d = stod(s.substr(0, 3)) / 10; d = round(d); if (d >= 100.0) { d /= 10; n++; } d /= 10; printf("%.1lf*10^%d\n", d, n); return 0; }