結果
問題 | No.688 E869120 and Constructing Array 2 |
ユーザー | munro |
提出日時 | 2018-06-24 15:32:53 |
言語 | C++11 (gcc 11.4.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 346 bytes |
コンパイル時間 | 1,059 ms |
コンパイル使用メモリ | 143,664 KB |
実行使用メモリ | 4,504 KB |
最終ジャッジ日時 | 2023-09-21 20:57:31 |
合計ジャッジ時間 | 3,852 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | RE | - |
ソースコード
#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; }