結果

問題 No.668 6.0*10^23
ユーザー iwkjoseciwkjosec
提出日時 2018-03-23 22:51:50
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 624 bytes
コンパイル時間 3,236 ms
コンパイル使用メモリ 104,148 KB
実行使用メモリ 22,924 KB
最終ジャッジ日時 2023-09-12 17:26:41
合計ジャッジ時間 8,503 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 WA -
testcase_02 AC 58 ms
22,668 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 56 ms
22,684 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 58 ms
22,872 KB
testcase_14 AC 58 ms
20,676 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 57 ms
18,752 KB
testcase_19 WA -
testcase_20 AC 57 ms
22,768 KB
testcase_21 WA -
testcase_22 AC 58 ms
20,644 KB
testcase_23 AC 58 ms
20,724 KB
testcase_24 AC 59 ms
20,660 KB
testcase_25 WA -
testcase_26 AC 57 ms
20,780 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 57 ms
20,776 KB
testcase_31 WA -
testcase_32 AC 56 ms
20,808 KB
testcase_33 AC 57 ms
22,720 KB
testcase_34 AC 57 ms
20,748 KB
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 57 ms
20,644 KB
testcase_38 AC 56 ms
20,716 KB
testcase_39 WA -
testcase_40 AC 57 ms
20,660 KB
testcase_41 AC 56 ms
20,776 KB
testcase_42 WA -
testcase_43 WA -
testcase_44 AC 58 ms
20,684 KB
testcase_45 RE -
testcase_46 AC 55 ms
20,636 KB
testcase_47 AC 55 ms
20,716 KB
testcase_48 AC 55 ms
20,796 KB
testcase_49 AC 55 ms
20,796 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.Collections.Generic;
using System.Linq;
using static System.Console;

class Program
{
    static void Main()
    {
        var N = ReadLine();
        var a = int.Parse(N[0] + "");
        var b = int.Parse(N[1] + "");
        var c = N.Length - 1;
        if (N[3] > '4')
        {
            b++;
            if (b == 10)
            {
                b = 0;
                a++;
                if (a == 10)
                {
                    a = 1;
                    b = 0;
                    c++;
                }
            }
        }
        WriteLine($"{a}.{b}*10^{c}");

    }
}
0