結果

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

ソースコード

diff #

a,b = map(int,input().split())
def check(x):
    s = str(x)
    if s[0] == "-":
        s = s[2:]
    else:
        s = s[1:]
    return x and len(s) >= 2 and s.count("0") == len(s)
if check(a) and check(b):
    print(a*b//10)
elif abs(a*b) < 100000000:
    print(a*b)
else:
    print("E")
0