結果

問題 No.722 100×100=1000
ユーザー clocklrclocklr
提出日時 2018-09-28 20:02:41
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 947 bytes
コンパイル時間 2,208 ms
コンパイル使用メモリ 103,624 KB
実行使用メモリ 22,896 KB
最終ジャッジ日時 2023-08-28 15:55:12
合計ジャッジ時間 5,194 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
20,912 KB
testcase_01 AC 57 ms
20,872 KB
testcase_02 AC 56 ms
22,896 KB
testcase_03 AC 58 ms
20,912 KB
testcase_04 AC 57 ms
22,836 KB
testcase_05 AC 56 ms
20,828 KB
testcase_06 AC 56 ms
20,888 KB
testcase_07 AC 56 ms
20,808 KB
testcase_08 AC 57 ms
21,004 KB
testcase_09 AC 57 ms
22,816 KB
testcase_10 AC 58 ms
22,836 KB
testcase_11 AC 55 ms
20,748 KB
testcase_12 AC 56 ms
20,732 KB
testcase_13 AC 57 ms
22,880 KB
testcase_14 AC 55 ms
20,912 KB
testcase_15 AC 56 ms
20,792 KB
testcase_16 AC 55 ms
20,868 KB
testcase_17 AC 54 ms
20,792 KB
testcase_18 AC 57 ms
22,848 KB
testcase_19 AC 56 ms
20,756 KB
testcase_20 AC 56 ms
22,780 KB
testcase_21 AC 55 ms
20,912 KB
testcase_22 AC 55 ms
20,764 KB
testcase_23 AC 56 ms
20,752 KB
testcase_24 AC 57 ms
22,808 KB
testcase_25 AC 55 ms
20,760 KB
testcase_26 AC 56 ms
20,720 KB
testcase_27 AC 55 ms
20,748 KB
testcase_28 AC 57 ms
20,764 KB
testcase_29 AC 57 ms
21,008 KB
testcase_30 AC 56 ms
18,744 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 static System.Console;
using static System.Math;

public class Hello{
    public static void Main(){
        string[] input = ReadLine().Split(' ');
        long a = long.Parse(input[0]);
        long b = long.Parse(input[1]);
        
        if(Abs(a)>=100 && Abs(b)>=100){
            long c = a;
            long d = b;
            while(c%10==0){
                c/=10;
            }
            while(d%10==0){
                d/=10;
            }
            c = Abs(c);
            d = Abs(d);
            if(0<c&&c<10 && 0<d&&d<10){
                WriteLine(a*b/10);
            }else{
                if(Abs(a*b)>99999999){
                    WriteLine("E");
                }else{
                    WriteLine(a*b);
                }
            }
        }else{
            if(Abs(a*b)>99999999){
                WriteLine("E");
            }else{
                WriteLine(a*b);
            }
        }
    }
}
0