結果
| 問題 |
No.668 6.0*10^23
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-26 23:43:45 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 791 bytes |
| コンパイル時間 | 747 ms |
| コンパイル使用メモリ | 85,708 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-01 06:14:04 |
| 合計ジャッジ時間 | 2,046 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 50 |
ソースコード
#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string>
#include<iostream>
#include<iostream>
#include<cctype>
#include<cstdio>
#include<vector>
#include<stack>
#include<queue>
#include <algorithm>
#include<math.h>
#include<set>
#include<map>
#include <sstream>
#include<iomanip>
#include <ctype.h>
#include <fstream>
#include <cassert>
using namespace std;
//#include<bits/stdc++.h>
int main() {
string p;
cin >> p;
int a = (p[0] - '0') * 100 + (p[1] - '0') * 10 + p[2] - '0';
if (a % 10 >= 5) {
a += 10;
}
if (a >= 1000) {
a /= 10; p += '0';
}int b = a - a % 10;
if (b >= 100) {
cout << b / 100 << "." << (b % 100) / 10;
}
else cout << b % 10 << "." << b / 10;
int t = p.size()-1;
cout << "*10^" << t << endl;
return 0;
}