結果

問題 No.722 100×100=1000
ユーザー santafe1006santafe1006
提出日時 2018-10-25 23:11:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 621 bytes
コンパイル時間 216 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 17,956 KB
最終ジャッジ日時 2024-04-20 15:34:01
合計ジャッジ時間 4,180 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 26 ms
11,008 KB
testcase_02 RE -
testcase_03 AC 26 ms
10,880 KB
testcase_04 RE -
testcase_05 AC 27 ms
11,008 KB
testcase_06 AC 27 ms
11,008 KB
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 TLE -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

def getDivMod(p) :
    cnt = 0
    x = p
    while True :
        x,y = divmod(x,10)
        if y != 0 :
            cnt = 0
            breakå
        if 0 < abs(x) and abs(x) <= 9 :
            cnt += 1
            break
        else :
            cnt += 1
    return x,cnt

d1,z1 = getDivMod(a)
if z1 != 0 :
    d2,z2 = getDivMod(b)

multi = 0

if z1 >= 2 and z2 >=2  :
    multi = d1 * d2
    answer = str(multi) + "0"*(z1 + z2 -1)
else :
    multi = a * b
    if -99999999 <= multi and multi <= 99999999:
        answer = str(multi)
    else :
        answer = 'E'
print(answer)
    
0