結果
| 問題 |
No.668 6.0*10^23
|
| コンテスト | |
| ユーザー |
かぼちゃ
|
| 提出日時 | 2018-03-23 22:58:48 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 345 bytes |
| コンパイル時間 | 498 ms |
| コンパイル使用メモリ | 59,984 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-30 05:17:49 |
| 合計ジャッジ時間 | 1,584 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 41 WA * 9 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
string s;
cin >> s;
float a = 0;
for(int i = 0;i < 2;i++){
a *= 10;
a += s[i] - '0';
}
a += s[2]-'0' > 4 ? 1 : 0;
a/= 10;
printf("%0.1f*10^%lu\n",a,s.length()-1);
return 0;
}
かぼちゃ