結果

問題 No.722 100×100=1000
ユーザー liny_tailliny_tail
提出日時 2020-09-22 19:24:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 301 bytes
コンパイル時間 204 ms
コンパイル使用メモリ 10,692 KB
実行使用メモリ 12,592 KB
最終ジャッジ日時 2023-09-08 16:31:34
合計ジャッジ時間 5,080 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,124 KB
testcase_01 AC 16 ms
7,804 KB
testcase_02 AC 15 ms
7,896 KB
testcase_03 AC 15 ms
7,864 KB
testcase_04 AC 16 ms
7,936 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 15 ms
7,780 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 16 ms
7,888 KB
testcase_11 AC 15 ms
7,792 KB
testcase_12 AC 15 ms
7,824 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 #

def F(num):
  while True:
    if num % 10 != 0:
      break
    num //= 10
  
  return True if -9 <= num <= 9 else False

A, B = [int(i) for i in input().strip().split(' ')]
a, b = F(A), F(B)

if a and b:
  print(A * B // 10)
else:
  if abs(A * B) >= 99999999:
    print('E')
  else:
    print(A * B)
0