結果

問題 No.722 100×100=1000
ユーザー lloyzlloyz
提出日時 2022-06-03 21:09:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 544 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 11,888 KB
実行使用メモリ 14,432 KB
最終ジャッジ日時 2023-10-21 01:36:28
合計ジャッジ時間 4,216 ms
ジャッジサーバーID
(参考情報)
judge9 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,056 KB
testcase_01 AC 29 ms
10,056 KB
testcase_02 AC 28 ms
10,056 KB
testcase_03 AC 28 ms
10,056 KB
testcase_04 AC 28 ms
10,056 KB
testcase_05 AC 29 ms
10,056 KB
testcase_06 AC 28 ms
10,056 KB
testcase_07 AC 28 ms
10,056 KB
testcase_08 AC 27 ms
10,056 KB
testcase_09 AC 27 ms
10,056 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 29 ms
10,056 KB
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())

aa = abs(a)
bb = abs(b)
a0, b0 = 0, 0
while True:
    if aa % 10 != 0:
        if not (1 <= aa <= 9):
            break
    if bb % 10 != 0:
        if not (1 <= bb <= 9):
            break
    if not (1 <= aa <= 9):
        aa //= 10
        a0 += 1
    if not (1 <= bb <= 9):
        bb //= 10
        b0 += 1
    if 1 <= aa <= 9 and 1 <= bb <= 9:
        break

if a0 >= 2 and b0 >= 2:
    print(a * b // 10)
else:
    ans = a * b
    if not (-99999999 <= ans <= 99999999):
        ans = 'E'
    print(ans)
0