結果

問題 No.722 100×100=1000
ユーザー kbys
提出日時 2020-03-31 00:04:33
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 419 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-12-29 19:53:53
合計ジャッジ時間 2,204 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int,input().split())
def calc(a,b):
    if abs(a*b) > 99999999:
        return 'E'
    else:
        return a*b
if a==0 or b==0:
    print(0)
elif a-(a//abs(a))*int(str(abs(a))[0])*(10**(len(str(abs(a)))-1)) == 0 and  b-(b//abs(b))*int(str(abs(b))[0])*(10**(len(str(abs(b)))-1)) == 0:
    if abs(a) >= 100 and abs(b) >= 100:
        print(a*b//10)
    else:
        print(calc(a,b))
else:
    print(calc(a,b))
0