結果
問題 |
No.722 100×100=1000
|
ユーザー |
![]() |
提出日時 | 2020-05-19 22:43:07 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 35 ms / 2,000 ms |
コード長 | 345 bytes |
コンパイル時間 | 330 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-12-29 19:55:42 |
合計ジャッジ時間 | 2,496 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 27 |
ソースコード
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 and n>=2 and m>=2: 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)