結果
問題 | No.668 6.0*10^23 |
ユーザー | mlpj56d |
提出日時 | 2018-03-24 00:03:21 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 359 bytes |
コンパイル時間 | 386 ms |
コンパイル使用メモリ | 55,188 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 05:27:38 |
合計ジャッジ時間 | 1,709 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }