結果
問題 | No.668 6.0*10^23 |
ユーザー |
|
提出日時 | 2018-05-03 21:51:04 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 421 bytes |
コンパイル時間 | 1,192 ms |
コンパイル使用メモリ | 157,964 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-30 06:26:33 |
合計ジャッジ時間 | 2,779 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
#include "bits/stdc++.h"#define fastcin {\cin.tie(0);\ios::sync_with_stdio(false);\}using namespace std;int main() {fastcin;string n;cin >> n;if(n[2] > '4') n[1]++;if(n[1]==':') {n[1] = '0';n[0]++;}if(n[0]==':') {cout << "1.0*10^" << n.length() << '\n';} else cout << n[0] << "." << n[1] << "*10^" << n.length()-1 << '\n';return 0;}