結果

問題 No.722 100×100=1000
ユーザー kbyskbys
提出日時 2020-03-30 23:54:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 494 bytes
コンパイル時間 589 ms
コンパイル使用メモリ 10,888 KB
実行使用メモリ 7,984 KB
最終ジャッジ日時 2023-09-05 11:42:32
合計ジャッジ時間 1,895 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,920 KB
testcase_01 WA -
testcase_02 AC 16 ms
7,784 KB
testcase_03 WA -
testcase_04 AC 16 ms
7,956 KB
testcase_05 AC 16 ms
7,800 KB
testcase_06 AC 16 ms
7,860 KB
testcase_07 AC 15 ms
7,792 KB
testcase_08 AC 16 ms
7,784 KB
testcase_09 AC 16 ms
7,908 KB
testcase_10 AC 16 ms
7,800 KB
testcase_11 RE -
testcase_12 AC 16 ms
7,852 KB
testcase_13 AC 16 ms
7,852 KB
testcase_14 AC 16 ms
7,920 KB
testcase_15 AC 16 ms
7,792 KB
testcase_16 AC 16 ms
7,816 KB
testcase_17 AC 16 ms
7,828 KB
testcase_18 AC 16 ms
7,788 KB
testcase_19 RE -
testcase_20 RE -
testcase_21 AC 16 ms
7,920 KB
testcase_22 AC 15 ms
7,796 KB
testcase_23 AC 16 ms
7,868 KB
testcase_24 AC 16 ms
7,848 KB
testcase_25 AC 16 ms
7,848 KB
testcase_26 AC 16 ms
7,984 KB
testcase_27 AC 16 ms
7,860 KB
testcase_28 AC 16 ms
7,928 KB
testcase_29 AC 15 ms
7,980 KB
testcase_30 AC 15 ms
7,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int,input().split())
if a%10 == 0 and b%10 == 0:
    if abs(a) < 100 or abs(b) < 100:
        print(a*b)
    else:
        if a/int(str(a)[0])*(10**(len(str(a))-1)) != 1 or b/int(str(b)[0])*(10**(len(str(b))-1)) != 1:
            ans = a*b
            if abs(ans) > 99999999:
                print('E')
            else:
                print(ans)
        else:
            print(a*b//10)
else:
    ans = a*b
    if abs(ans) > 99999999:
        print('E')
    else:
        print(ans)
0