結果
| 問題 |
No.668 6.0*10^23
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-17 23:29:38 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 478 bytes |
| コンパイル時間 | 127 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 11,392 KB |
| 最終ジャッジ日時 | 2024-11-30 03:47:09 |
| 合計ジャッジ時間 | 3,372 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 6 RE * 40 |
ソースコード
from decimal import Decimal, ROUND_HALF_UP
def main():
N = input()
n = len(N) - 3
num = int(N) / 10 ** n
round_n = int(Decimal(num).quantize(Decimal('1E1'), rounding=ROUND_HALF_UP))
if len(N) < len(str(round_n * 10 ** n)):
ans_1 = round_n / 10 ** 3
else:
ans_1 = round_n / 10 ** 2
n_target = len(str(round(round_n, 2 - len(N))))
ans_2 = n_target - 1
print(str(ans_1)+'*10^'+str(ans_2))
if __name__ == '__main__':
main()