結果

問題 No.722 100×100=1000
ユーザー bluemeganebluemegane
提出日時 2020-09-15 18:27:17
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 810 bytes
コンパイル時間 2,051 ms
コンパイル使用メモリ 62,624 KB
実行使用メモリ 22,876 KB
最終ジャッジ日時 2023-09-04 01:52:35
合計ジャッジ時間 5,275 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
20,672 KB
testcase_01 AC 57 ms
22,796 KB
testcase_02 AC 55 ms
20,804 KB
testcase_03 AC 56 ms
20,740 KB
testcase_04 AC 55 ms
20,792 KB
testcase_05 AC 55 ms
22,708 KB
testcase_06 AC 57 ms
20,760 KB
testcase_07 AC 55 ms
22,808 KB
testcase_08 AC 55 ms
20,752 KB
testcase_09 AC 55 ms
22,816 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 55 ms
22,876 KB
testcase_13 AC 56 ms
20,696 KB
testcase_14 AC 55 ms
20,752 KB
testcase_15 AC 55 ms
20,676 KB
testcase_16 AC 56 ms
22,820 KB
testcase_17 AC 55 ms
20,768 KB
testcase_18 AC 55 ms
20,780 KB
testcase_19 AC 55 ms
22,620 KB
testcase_20 AC 54 ms
18,768 KB
testcase_21 AC 55 ms
22,844 KB
testcase_22 AC 57 ms
20,624 KB
testcase_23 AC 55 ms
20,652 KB
testcase_24 AC 58 ms
20,752 KB
testcase_25 AC 56 ms
22,684 KB
testcase_26 AC 58 ms
22,692 KB
testcase_27 WA -
testcase_28 AC 55 ms
22,716 KB
testcase_29 AC 58 ms
20,576 KB
testcase_30 AC 56 ms
20,660 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using static System.Math;
using System;

public class Hello
{
    static void Main()
    {
        string[] line = Console.ReadLine().Trim().Split(' ');
        var a = int.Parse(line[0]);
        var b = int.Parse(line[1]);
        if (check(a) && check(b)) anzan(a, b);
        else dentaku(a, b);
    }
    static void dentaku(int a, int b)
    {
        long ans = a * (long)b;
        var keta = Abs(ans).ToString().Length;
        if (keta > 8) Console.WriteLine("E");
        else Console.WriteLine(ans);
    }
    static void anzan(int a, int b)
    {
        long ans = a * (long)b / 10L;
        Console.WriteLine(ans);
    }
    static bool check(int a)
    {
        a = Abs(a);
        if (a % 100 != 0) return false;
        var ap100 = a / 100;
        return (ap100 >= 1 | ap100 <= 9);
    }
}
0