結果

問題 No.668 6.0*10^23
ユーザー NoNo
提出日時 2018-03-25 12:28:52
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 651 bytes
コンパイル時間 5,588 ms
コンパイル使用メモリ 101,444 KB
実行使用メモリ 28,692 KB
最終ジャッジ日時 2023-09-12 17:51:08
合計ジャッジ時間 12,021 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
28,192 KB
testcase_01 AC 112 ms
26,360 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 106 ms
26,336 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 106 ms
28,340 KB
testcase_10 AC 105 ms
24,168 KB
testcase_11 AC 110 ms
28,440 KB
testcase_12 AC 109 ms
26,392 KB
testcase_13 AC 106 ms
28,224 KB
testcase_14 AC 109 ms
26,368 KB
testcase_15 AC 105 ms
26,464 KB
testcase_16 AC 105 ms
26,204 KB
testcase_17 AC 109 ms
28,452 KB
testcase_18 AC 107 ms
26,308 KB
testcase_19 AC 107 ms
26,212 KB
testcase_20 AC 106 ms
26,156 KB
testcase_21 AC 105 ms
26,208 KB
testcase_22 AC 106 ms
26,240 KB
testcase_23 AC 104 ms
26,252 KB
testcase_24 AC 105 ms
28,300 KB
testcase_25 AC 107 ms
26,428 KB
testcase_26 AC 105 ms
28,036 KB
testcase_27 AC 106 ms
26,416 KB
testcase_28 AC 105 ms
26,160 KB
testcase_29 AC 104 ms
26,552 KB
testcase_30 AC 105 ms
26,368 KB
testcase_31 AC 105 ms
28,384 KB
testcase_32 AC 105 ms
28,192 KB
testcase_33 AC 105 ms
28,276 KB
testcase_34 AC 104 ms
26,048 KB
testcase_35 AC 105 ms
26,112 KB
testcase_36 AC 105 ms
24,344 KB
testcase_37 AC 105 ms
26,212 KB
testcase_38 AC 105 ms
28,248 KB
testcase_39 AC 106 ms
26,240 KB
testcase_40 AC 106 ms
26,152 KB
testcase_41 AC 106 ms
26,148 KB
testcase_42 AC 105 ms
26,180 KB
testcase_43 AC 105 ms
26,360 KB
testcase_44 AC 106 ms
28,188 KB
testcase_45 AC 104 ms
26,320 KB
testcase_46 AC 102 ms
24,200 KB
testcase_47 AC 104 ms
26,152 KB
testcase_48 AC 109 ms
26,320 KB
testcase_49 AC 105 ms
24,272 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