結果

問題 No.722 100×100=1000
ユーザー takakintakakin
提出日時 2020-05-19 22:42:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 327 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-09 22:34:43
合計ジャッジ時間 1,968 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()

a,b=map(int,input().split())
n,m=len(str(a))-1,len(str(b))-1
if a<0:
  n-=1
if b<0:
  m-=1
if a==(a//(10**n))*10**n and b==(b//(10**m))*10**m:
  print((a//(10**n))*(b//(10**m))*(10**(n+m-1)))
else:
  if a*b<-99999999 or 99999999<a*b:
    print("E")
  else:
    print(a*b)
0