結果

問題 No.722 100×100=1000
ユーザー GrayCoder
提出日時 2018-08-03 22:55:50
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 380 bytes
コンパイル時間 251 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-10-12 10:41:39
合計ジャッジ時間 2,293 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 22 WA * 3 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin, stdout
input = lambda: stdin.readline().rstrip()
write = stdout.write

def main():
    A, B = map(int, input().split())

    ans = A * B
    if (not A % 100 and
        not B % 100 and
        str(A)[1] == str(B)[1] == '0'):
            ans = (A * B) // 10
    else:
        if not -99999999 <= ans <= 99999999:
            ans = 'E'
    print(ans)

main()
0