結果

問題 No.722 100×100=1000
ユーザー c-yan
提出日時 2020-08-18 01:06:34
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 352 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-10-11 11:33:58
合計ジャッジ時間 2,031 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 25 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = map(int, input().split())

t = A
n = 0
while t != 0 and t % 10 == 0:
    t //= 10
    n += 1
a = t

t = B
m = 0
while t != 0 and t % 10 == 0:
    t //= 10
    m += 1
b = t

if 1 <= a <= 9 and n >= 2 and 1 <= b <= 9 and m >= 2:
    print(A * B // 10)
else:
    if -99999999 <= A * B <= 99999999:
        print(A * B)
    else:
        print('E')
0