結果
問題 |
No.668 6.0*10^23
|
ユーザー |
|
提出日時 | 2020-07-17 23:15:43 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 368 bytes |
コンパイル時間 | 123 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-11-30 02:53:53 |
合計ジャッジ時間 | 3,230 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 3 RE * 40 |
ソースコード
def main(): N = input() n = len(N) - 3 num = int(N) / 10 ** n if len(N) < len(str(int(round(num, -1)))): ans_1 = round(num, -1) / 10 ** 3 else: ans_1 = round(num, -1) / 10 ** 2 n_target = len(str(round(int(N), 2 - len(N)))) ans_2 = n_target - 1 print(str(ans_1)+'*10^'+str(ans_2)) if __name__ == '__main__': main()