結果

問題 No.722 100×100=1000
ユーザー 141sksk141sksk
提出日時 2019-08-25 21:59:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 395 bytes
コンパイル時間 129 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-20 16:24:23
合計ジャッジ時間 1,995 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 WA -
testcase_02 RE -
testcase_03 WA -
testcase_04 RE -
testcase_05 AC 27 ms
10,752 KB
testcase_06 AC 27 ms
10,880 KB
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 AC 27 ms
10,624 KB
testcase_11 AC 26 ms
10,752 KB
testcase_12 AC 26 ms
10,752 KB
testcase_13 AC 26 ms
10,752 KB
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 AC 27 ms
10,752 KB
testcase_18 RE -
testcase_19 WA -
testcase_20 WA -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 AC 27 ms
10,752 KB
testcase_25 RE -
testcase_26 AC 27 ms
10,752 KB
testcase_27 AC 27 ms
10,752 KB
testcase_28 RE -
testcase_29 RE -
testcase_30 AC 26 ms
10,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():

    A, B = map(int, input().split())
    listA, listB = str(A), str(B)
    aCount, bCount = listA.count("0"), listB.count("0")
    a, b = A / aCount, B / bCount
    if A % 100 == 0 and B % 100 == 0 and 1 <= a <= 9 and 1 <= b <= 9:
        print(int(A * B / 10))
    elif abs(A * B) > 99999999:
        print("E")
    else:
        print(A * B)

if __name__ == "__main__":
    main()
0