結果
問題 |
No.668 6.0*10^23
|
ユーザー |
|
提出日時 | 2018-12-26 23:40:05 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 734 bytes |
コンパイル時間 | 658 ms |
コンパイル使用メモリ | 84,832 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-01 06:14:11 |
合計ジャッジ時間 | 1,980 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 41 WA * 9 |
ソースコード
#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'; int b = a-a%10; if (a % 10 >= 5)b += 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; }