結果

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

ソースコード

diff #

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

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

    if not A % 10 and not B % 10:
        ans = (A * B) // 10
    else:
        ans = A * B
        if not -99999999 <= ans <= 99999999:
            ans = 'E'
    print(ans)

main()
0