結果

問題 No.722 100×100=1000
ユーザー bluemeganebluemegane
提出日時 2020-09-15 18:30:41
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 811 bytes
コンパイル時間 2,197 ms
コンパイル使用メモリ 67,132 KB
実行使用メモリ 24,824 KB
最終ジャッジ日時 2023-09-04 01:52:41
合計ジャッジ時間 4,052 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
22,756 KB
testcase_01 AC 58 ms
22,832 KB
testcase_02 AC 57 ms
20,748 KB
testcase_03 WA -
testcase_04 AC 59 ms
20,748 KB
testcase_05 AC 58 ms
22,716 KB
testcase_06 AC 58 ms
22,840 KB
testcase_07 AC 58 ms
22,632 KB
testcase_08 AC 58 ms
20,700 KB
testcase_09 AC 58 ms
20,744 KB
testcase_10 AC 58 ms
22,724 KB
testcase_11 AC 58 ms
20,792 KB
testcase_12 AC 57 ms
20,792 KB
testcase_13 AC 57 ms
20,664 KB
testcase_14 AC 58 ms
20,744 KB
testcase_15 AC 58 ms
20,676 KB
testcase_16 AC 58 ms
20,748 KB
testcase_17 AC 57 ms
20,788 KB
testcase_18 AC 57 ms
20,748 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 58 ms
20,756 KB
testcase_22 AC 57 ms
20,736 KB
testcase_23 AC 58 ms
20,752 KB
testcase_24 AC 57 ms
20,656 KB
testcase_25 AC 58 ms
20,756 KB
testcase_26 AC 58 ms
22,808 KB
testcase_27 AC 56 ms
18,640 KB
testcase_28 AC 58 ms
20,796 KB
testcase_29 AC 58 ms
20,696 KB
testcase_30 AC 58 ms
22,792 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