結果

問題 No.668 6.0*10^23
ユーザー NoNo
提出日時 2018-03-23 22:54:41
言語 C#(csc)
(csc 3.9.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 651 bytes
コンパイル時間 2,047 ms
コンパイル使用メモリ 101,856 KB
実行使用メモリ 30,388 KB
最終ジャッジ日時 2023-09-12 17:26:51
合計ジャッジ時間 8,930 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 101 ms
26,464 KB
testcase_01 AC 106 ms
26,248 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 103 ms
26,320 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 102 ms
28,132 KB
testcase_10 AC 102 ms
28,296 KB
testcase_11 AC 107 ms
26,560 KB
testcase_12 AC 106 ms
26,408 KB
testcase_13 AC 105 ms
26,344 KB
testcase_14 AC 107 ms
26,368 KB
testcase_15 AC 103 ms
26,548 KB
testcase_16 AC 104 ms
26,220 KB
testcase_17 AC 108 ms
26,312 KB
testcase_18 AC 103 ms
26,320 KB
testcase_19 AC 102 ms
26,308 KB
testcase_20 AC 103 ms
26,172 KB
testcase_21 AC 103 ms
26,208 KB
testcase_22 AC 104 ms
26,324 KB
testcase_23 AC 102 ms
24,184 KB
testcase_24 AC 102 ms
26,184 KB
testcase_25 AC 104 ms
28,380 KB
testcase_26 AC 103 ms
24,060 KB
testcase_27 AC 104 ms
30,288 KB
testcase_28 AC 105 ms
26,136 KB
testcase_29 AC 104 ms
28,176 KB
testcase_30 AC 104 ms
26,132 KB
testcase_31 AC 103 ms
26,176 KB
testcase_32 AC 104 ms
28,360 KB
testcase_33 AC 106 ms
26,096 KB
testcase_34 AC 103 ms
26,252 KB
testcase_35 AC 104 ms
26,228 KB
testcase_36 AC 105 ms
28,332 KB
testcase_37 AC 103 ms
26,328 KB
testcase_38 AC 103 ms
28,324 KB
testcase_39 AC 105 ms
28,260 KB
testcase_40 AC 106 ms
28,156 KB
testcase_41 AC 103 ms
26,536 KB
testcase_42 AC 103 ms
28,284 KB
testcase_43 AC 105 ms
28,716 KB
testcase_44 AC 104 ms
26,376 KB
testcase_45 AC 103 ms
26,456 KB
testcase_46 AC 103 ms
26,324 KB
testcase_47 AC 103 ms
28,200 KB
testcase_48 AC 107 ms
28,276 KB
testcase_49 AC 103 ms
28,112 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Text.RegularExpressions;

namespace y
{
    class Program
    {
        static void Main(string[] args)
        {
            string n = Console.ReadLine();
            string f = n.Substring(0, 3);

            Double a = 0;
            if (Regex.IsMatch(f, "99[5-9]"))
            {
                a = 1.0;
                Console.WriteLine(a.ToString("0.0") + "*10^" + (n.Length).ToString());
            }
            else
            {
                a = Math.Round(double.Parse(f) / 10) / 10d;
                Console.WriteLine(a.ToString("0.0") + "*10^" + (n.Length - 1).ToString());
            }
        }
    }
}
0