結果

問題 No.722 100×100=1000
ユーザー keymoonkeymoon
提出日時 2019-03-14 13:04:14
言語 C#(csc)
(csc 3.9.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 962 bytes
コンパイル時間 3,426 ms
コンパイル使用メモリ 110,900 KB
実行使用メモリ 27,840 KB
最終ジャッジ日時 2024-04-20 16:16:55
合計ジャッジ時間 5,089 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
25,540 KB
testcase_01 AC 28 ms
25,664 KB
testcase_02 AC 27 ms
25,536 KB
testcase_03 AC 28 ms
27,840 KB
testcase_04 AC 28 ms
25,412 KB
testcase_05 AC 27 ms
25,284 KB
testcase_06 AC 27 ms
27,456 KB
testcase_07 AC 26 ms
25,540 KB
testcase_08 AC 27 ms
25,536 KB
testcase_09 AC 28 ms
23,376 KB
testcase_10 AC 27 ms
25,156 KB
testcase_11 AC 27 ms
27,328 KB
testcase_12 AC 27 ms
25,644 KB
testcase_13 AC 28 ms
25,264 KB
testcase_14 AC 26 ms
25,800 KB
testcase_15 AC 27 ms
25,284 KB
testcase_16 AC 28 ms
25,392 KB
testcase_17 AC 27 ms
25,548 KB
testcase_18 AC 26 ms
25,664 KB
testcase_19 AC 26 ms
25,540 KB
testcase_20 AC 26 ms
25,664 KB
testcase_21 AC 26 ms
27,456 KB
testcase_22 AC 27 ms
23,088 KB
testcase_23 AC 27 ms
25,280 KB
testcase_24 AC 27 ms
27,460 KB
testcase_25 AC 27 ms
27,328 KB
testcase_26 AC 27 ms
25,412 KB
testcase_27 WA -
testcase_28 AC 28 ms
27,336 KB
testcase_29 AC 29 ms
23,480 KB
testcase_30 AC 27 ms
23,220 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.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOptions;
using MethodImplAttribute = System.Runtime.CompilerServices.MethodImplAttribute;


static class P
{
    static void Main()
    {
        var ab = Console.ReadLine().Split().Select(long.Parse).ToList();
        if (IsEasyNum(ab[0]) && IsEasyNum(ab[1])) Console.WriteLine(ab[0] * ab[1] / 10);
        else Console.WriteLine(Abs(ab[0] * ab[1]) <= 99999999 ? (ab[0] * ab[1]).ToString() : "E");
    }

    static bool IsEasyNum(long num)
    {
        var log = num.ToString().SkipWhile(x => x != '0').Count();
        var pow = Pow(10, log);
        var d = num / pow;
        return log >= 2 && Abs(d) < 10;
    }
}
0