結果
| 問題 | No.688 E869120 and Constructing Array 2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-06-24 15:32:53 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 346 bytes |
| 記録 | |
| コンパイル時間 | 1,518 ms |
| コンパイル使用メモリ | 174,480 KB |
| 実行使用メモリ | 6,144 KB |
| 最終ジャッジ日時 | 2026-03-29 05:12:54 |
| 合計ジャッジ時間 | 4,705 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | WA * 8 RE * 2 |
ソースコード
#include<stdio.h>
#include<bits/stdc++.h>
using namespace std;
int main(){
string sNum;
cin >> sNum;
assert(sNum.size() >= 3);
int a = (sNum[0] - '0')*10 + (sNum[1] - '0');
if((sNum[2] - '0')>=5)a++;
if(a >= 100){
printf("1.0*10^%d\n",sNum.size());
}else{
printf("%.1f*10^%d\n",(float)a/10,sNum.size() -1);
}
return 0;
}