結果
| 問題 |
No.722 100×100=1000
|
| コンテスト | |
| ユーザー |
takakin
|
| 提出日時 | 2020-05-19 22:42:11 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 327 bytes |
| コンパイル時間 | 104 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-01 23:09:16 |
| 合計ジャッジ時間 | 2,078 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 WA * 8 |
ソースコード
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)
takakin