結果

問題 No.722 100×100=1000
ユーザー B9syDOfYhHFXecuB9syDOfYhHFXecu
提出日時 2018-11-11 13:09:42
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 289 bytes
コンパイル時間 123 ms
コンパイル使用メモリ 10,564 KB
実行使用メモリ 8,016 KB
最終ジャッジ日時 2023-08-02 15:29:29
合計ジャッジ時間 1,879 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

A, B = [x for x in input().split(' ')]

def cal(a, b):
    x = int(a) * int(b)
    
    if list(set(a[1:]))[0] == '0' and list(set(b[1:]))[0] == '0':
        print(x // 10)
        
    else:
        if len(str(x)) > 8:
            print('E')
        else:
            print(x)

cal(A, B)
0