結果

問題 No.668 6.0*10^23
ユーザー バカらっくバカらっく
提出日時 2018-03-23 22:48:14
言語 C#(csc)
(csc 3.9.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 1,473 bytes
コンパイル時間 2,360 ms
コンパイル使用メモリ 107,184 KB
実行使用メモリ 23,300 KB
最終ジャッジ日時 2023-09-12 17:25:18
合計ジャッジ時間 7,317 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
21,240 KB
testcase_01 AC 65 ms
21,136 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 64 ms
21,296 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 62 ms
19,188 KB
testcase_10 AC 64 ms
21,192 KB
testcase_11 AC 65 ms
21,276 KB
testcase_12 AC 65 ms
23,216 KB
testcase_13 AC 65 ms
21,176 KB
testcase_14 AC 64 ms
21,192 KB
testcase_15 AC 65 ms
21,168 KB
testcase_16 AC 64 ms
19,268 KB
testcase_17 AC 64 ms
21,220 KB
testcase_18 AC 64 ms
23,272 KB
testcase_19 AC 64 ms
21,320 KB
testcase_20 AC 64 ms
21,160 KB
testcase_21 AC 63 ms
21,220 KB
testcase_22 AC 66 ms
23,296 KB
testcase_23 AC 64 ms
23,272 KB
testcase_24 AC 63 ms
21,220 KB
testcase_25 AC 65 ms
23,212 KB
testcase_26 AC 63 ms
21,224 KB
testcase_27 AC 64 ms
21,144 KB
testcase_28 AC 64 ms
23,260 KB
testcase_29 AC 64 ms
23,204 KB
testcase_30 AC 64 ms
21,216 KB
testcase_31 AC 65 ms
21,152 KB
testcase_32 AC 65 ms
23,260 KB
testcase_33 AC 65 ms
23,208 KB
testcase_34 AC 64 ms
21,228 KB
testcase_35 AC 65 ms
23,236 KB
testcase_36 AC 65 ms
21,152 KB
testcase_37 AC 64 ms
23,216 KB
testcase_38 AC 64 ms
21,356 KB
testcase_39 AC 68 ms
21,148 KB
testcase_40 AC 64 ms
23,296 KB
testcase_41 AC 65 ms
21,232 KB
testcase_42 AC 65 ms
23,300 KB
testcase_43 AC 65 ms
23,196 KB
testcase_44 AC 64 ms
21,212 KB
testcase_45 AC 63 ms
23,228 KB
testcase_46 AC 63 ms
21,296 KB
testcase_47 AC 64 ms
21,288 KB
testcase_48 AC 63 ms
21,132 KB
testcase_49 AC 62 ms
19,172 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.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;

public class Program
{

    public void Proc()
    {
        string inpt = Reader.ReadLine();

        if(inpt.Length == 1) {
            Console.WriteLine(inpt[0] + ".0*10^1");
            return;
        }
        if(inpt.Length <= 2) {
            Console.WriteLine(inpt[0] + "." + inpt[1] + "*10^2");
            return;
        }

        decimal left = decimal.Parse(inpt.Substring(0, 3)) / 10;
        left = Math.Round(left, MidpointRounding.ToEven) / 10;
        int sisu = inpt.Length - 1;
        if(left >= 10) {
            left = left / 10;
            sisu++;
        }

        Console.WriteLine(left.ToString("0.0") + "*10^" + sisu);
    }







    public class Reader
    {
        static StringReader sr;
        public static bool IsDebug = false;
        public static string ReadLine()
        {
            if (IsDebug)
            {
                if (sr == null)
                {
                    sr = new StringReader(InputText.Trim());
                }
                return sr.ReadLine();
            }
            else
            {
                return Console.ReadLine();
            }
        }
        private static string InputText = @"


9999999999

";
    }

    public static void Main(string[] args)
    {
#if DEBUG
        Reader.IsDebug = true;
#endif
        Program prg = new Program();
        prg.Proc();
    }
}
0