結果
問題 | No.668 6.0*10^23 |
ユーザー |
![]() |
提出日時 | 2018-09-07 18:56:55 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 412 bytes |
コンパイル時間 | 774 ms |
コンパイル使用メモリ | 110,220 KB |
実行使用メモリ | 27,352 KB |
最終ジャッジ日時 | 2024-07-01 04:18:32 |
合計ジャッジ時間 | 3,434 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;public class Hello{public static void Main(){var s = Console.ReadLine().Trim();var a = s.Substring(0, 3);var a2 = int.Parse(a) / 10.0;var a3 = Math.Round(a2, 0, MidpointRounding.AwayFromZero).ToString();var a4 = s.Length - 1;if (a3 == "100") { a3 = "10"; a4++; }Console.WriteLine("{0}.{1}*10^{2}",a3[0],a3[1],a4);}}