結果
| 問題 | No.668 6.0*10^23 |
| コンテスト | |
| ユーザー |
mlpj56d
|
| 提出日時 | 2018-03-24 00:03:21 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 359 bytes |
| 記録 | |
| コンパイル時間 | 449 ms |
| コンパイル使用メモリ | 70,700 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-19 23:47:49 |
| 合計ジャッジ時間 | 1,898 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 50 |
ソースコード
#include<stdio.h>
#include<iostream>
using namespace std;
int main (){
string s;
cin >> s ;
int x,y,l=s.length();
x = s[0] - '0';
y = s[1] - '0';
if( s[2] - '0' >= 5) y += 1;
x += y / 10;
y = y % 10;
if ( x == 10 ) {
x /= 10;
l++;
}
cout << x << "." << y << "*10^" << l - 1 << endl;
return 0;
}
mlpj56d