結果

問題 No.722 100×100=1000
ユーザー Mr.Fuku
提出日時 2018-08-07 11:59:10
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 35 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 166 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-12-29 19:29:20
合計ジャッジ時間 2,048 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())

str_a = str(abs(a))
str_b = str(abs(b))

if abs(a)>99 and abs(b)>99 and len(str_a)-str_a.count("0")==1 and len(str_b)-str_b.count("0")==1:
    print(str(a*b)[:-1])
else:
    ans = a*b
    if ans<-99999999 or ans>99999999:
        print("E")
    else:
        print(ans)
0