結果

問題 No.722 100×100=1000
ユーザー clocklrclocklr
提出日時 2018-09-28 19:56:31
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 674 bytes
コンパイル時間 2,946 ms
コンパイル使用メモリ 111,380 KB
実行使用メモリ 31,096 KB
最終ジャッジ日時 2024-04-20 15:31:14
合計ジャッジ時間 4,922 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
31,096 KB
testcase_01 AC 23 ms
23,772 KB
testcase_02 AC 23 ms
21,684 KB
testcase_03 AC 25 ms
26,012 KB
testcase_04 AC 24 ms
24,028 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 24 ms
23,900 KB
testcase_08 AC 25 ms
22,068 KB
testcase_09 AC 23 ms
24,096 KB
testcase_10 AC 24 ms
23,856 KB
testcase_11 AC 25 ms
24,240 KB
testcase_12 AC 25 ms
26,068 KB
testcase_13 TLE -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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]);
        
        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);
            }
        }
    }
}
0